Merge branch 'master' into move-appjs-to-appts

pull/5644/head
Joseph Izang 3 weeks ago committed by GitHub
commit c81b8db1cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -88,7 +88,12 @@ export const TabsUI = (props: TabsUIProps) => {
const getAI = async () => {
try {
return await props.plugin.call('settings', 'getCopilotSetting')
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 init_state
} catch (e) {
return false
}

Loading…
Cancel
Save