fix(project): preserve cached project identity
This commit is contained in:
parent
0ba1081cf1
commit
00a6f228f2
3 changed files with 12 additions and 116 deletions
|
|
@ -108,7 +108,7 @@ export const layer = Layer.effect(
|
|||
if (!repo) return { id: ID.global, directory: input, vcs: undefined }
|
||||
|
||||
const previous = yield* cached(repo.store)
|
||||
const id = (yield* remote(repo)) ?? previous ?? (yield* root(repo))
|
||||
const id = previous ?? (yield* root(repo))
|
||||
|
||||
return {
|
||||
previous,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue