Skip to content

Commit

Permalink
Merge branch 'master' into move-appjs-to-appts
Browse files Browse the repository at this point in the history
  • Loading branch information
joeizang authored Jan 14, 2025
2 parents ecf7556 + c61b5fb commit c81b8db
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit c81b8db

Please sign in to comment.