diff --git a/src/stores/Binding/Store.ts b/src/stores/Binding/Store.ts index e689e3233..c8446c344 100644 --- a/src/stores/Binding/Store.ts +++ b/src/stores/Binding/Store.ts @@ -946,9 +946,12 @@ const getInitialState = ( set( produce((state: BindingState) => { collections.forEach((collection) => { - state.collectionMetadata[ - collection - ].sourceBackfillRecommended = value; + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + if (state.collectionMetadata?.[collection]) { + state.collectionMetadata[ + collection + ].sourceBackfillRecommended = value; + } }); }), false,