mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 22:58:52 +02:00
fix(collections): note list sometimes not restored (fixes #7129)
This commit is contained in:
parent
53b9ce0f3d
commit
6b35e909ab
@ -189,6 +189,7 @@ function useViewModeConfig<T extends object>(note: FNote | null | undefined, vie
|
||||
|
||||
useEffect(() => {
|
||||
if (!note || !viewType) return;
|
||||
setViewConfig(undefined);
|
||||
const viewStorage = new ViewModeStorage<T>(note, viewType);
|
||||
viewStorage.restore().then(config => {
|
||||
const storeFn = (config: T) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user