fix undefined mappings at start

This commit is contained in:
Rushikesh Tote 2022-06-06 19:22:02 +05:30
parent c748884edc
commit 8ab2de6fb7

View file

@ -58,7 +58,7 @@ export async function removeWatchMapping(collectionName: string) {
}
export function getWatchMappings() {
const mappings = watchStore.get('mappings');
const mappings = watchStore.get('mappings') ?? [];
return mappings;
}