Skip to content

Commit

Permalink
Update backfill-related state when a single binding is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kiahna-tucker committed Mar 6, 2025
1 parent 1d1e940 commit 294ccba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/stores/Binding/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,17 @@ const getInitialState = (
: null;
}

// Update backfill-related state.
state.backfilledBindings =
mappedUUIDsAndResourceConfigs.map(
([bindingUUID, _resourceConfig]) => bindingUUID
);

state.backfillAllBindings =
state.backfilledBindings.length > 0 &&
state.backfilledBindings.length ===
Object.keys(state.resourceConfigs).length;

// Remove the binding from the bindings dictionary.
const evaluatedBindings = state.bindings;

Expand Down

0 comments on commit 294ccba

Please sign in to comment.