mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-08 12:45:55 +08:00
fix: should not show open folder if it is not moved (#2299)
This commit is contained in:
@@ -36,7 +36,7 @@ vi.stubGlobal('window', {
|
||||
},
|
||||
events: {
|
||||
db: {
|
||||
onDbFileUpdate: (fn: (id: string) => void) => {
|
||||
onDBFileUpdate: (fn: (id: string) => void) => {
|
||||
triggerDBUpdate = fn;
|
||||
return () => {
|
||||
triggerDBUpdate = null;
|
||||
@@ -44,7 +44,10 @@ vi.stubGlobal('window', {
|
||||
},
|
||||
|
||||
// not used in this test
|
||||
onDbFileMissing: () => {
|
||||
onDBFileMissing: () => {
|
||||
return () => {};
|
||||
},
|
||||
onDBFilePathChange: () => {
|
||||
return () => {};
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user