mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 07:08:55 +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(() => {
|
useEffect(() => {
|
||||||
if (!note || !viewType) return;
|
if (!note || !viewType) return;
|
||||||
|
setViewConfig(undefined);
|
||||||
const viewStorage = new ViewModeStorage<T>(note, viewType);
|
const viewStorage = new ViewModeStorage<T>(note, viewType);
|
||||||
viewStorage.restore().then(config => {
|
viewStorage.restore().then(config => {
|
||||||
const storeFn = (config: T) => {
|
const storeFn = (config: T) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user