mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 05:43:55 +00:00
feat(desktop): persist currentSidecarUrl in state when isSidecar prop is true (#12792)
This commit is contained in:
parent
40b111d92c
commit
b0ceec9b19
@ -105,12 +105,11 @@ export const { use: useServer, provider: ServerProvider } = createSimpleContext(
|
||||
// Add the new sidecar url
|
||||
if (props.isSidecar && props.defaultUrl) {
|
||||
add(props.defaultUrl)
|
||||
setStore("currentSidecarUrl", props.defaultUrl)
|
||||
}
|
||||
|
||||
setState("active", url)
|
||||
})
|
||||
|
||||
console.log(store.list)
|
||||
})
|
||||
|
||||
const isReady = createMemo(() => ready() && !!state.active)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user