fix undefined mappings at start
This commit is contained in:
parent
c748884edc
commit
8ab2de6fb7
|
@ -58,7 +58,7 @@ export async function removeWatchMapping(collectionName: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getWatchMappings() {
|
export function getWatchMappings() {
|
||||||
const mappings = watchStore.get('mappings');
|
const mappings = watchStore.get('mappings') ?? [];
|
||||||
return mappings;
|
return mappings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue