fix(app): prompt persistence and draft sessions (#33528)
This commit is contained in:
parent
a131811cdc
commit
e04c5e72f7
8 changed files with 154 additions and 32 deletions
|
|
@ -185,7 +185,9 @@ function TargetDirectoryLayout(props: ParentProps) {
|
|||
if (!search.draftId) return undefined
|
||||
return tabs.store.find((tab): tab is DraftTab => tab.type === "draft" && tab.draftID === search.draftId)?.directory
|
||||
})
|
||||
const directory = createMemo<string | undefined>((prev) => prev ?? resolvedDirectory())
|
||||
const directory = createMemo<string | undefined>((prev) =>
|
||||
search.draftId ? resolvedDirectory() : (prev ?? resolvedDirectory()),
|
||||
)
|
||||
const home = () => !params.serverKey && !search.draftId
|
||||
const targetDirectory = () => directory()!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue