pull/5645/head^2
STetsing 1 month ago committed by Aniket
parent 14b0592175
commit 2924e4ef15
  1. 5
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -88,6 +88,11 @@ export const TabsUI = (props: TabsUIProps) => {
const getAI = async () => {
try {
const init_state = await props.plugin.call('settings', 'getCopilotSetting')
if (init_state === undefined || init_state === null) {
await props.plugin.call('settings', 'updateCopilotChoice', ai_switch)
return ai_switch
}
return await props.plugin.call('settings', 'getCopilotSetting')
} catch (e) {
return false

Loading…
Cancel
Save