mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-19 16:40:48 +00:00
feat(desktop): persist currentSidecarUrl in state when isSidecar prop is true (#12792)
This commit is contained in:
parent
40b111d92c
commit
b0ceec9b19
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue