We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecf7556 + c61b5fb commit c81b8dbCopy full SHA for c81b8db
libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx
@@ -88,7 +88,12 @@ export const TabsUI = (props: TabsUIProps) => {
88
89
const getAI = async () => {
90
try {
91
- return await props.plugin.call('settings', 'getCopilotSetting')
+ const init_state = await props.plugin.call('settings', 'getCopilotSetting')
92
+ if (init_state === undefined || init_state === null) {
93
+ await props.plugin.call('settings', 'updateCopilotChoice', ai_switch)
94
+ return ai_switch
95
+ }
96
+ return init_state
97
} catch (e) {
98
return false
99
}
0 commit comments