Skip to content

Commit

Permalink
Fix double registry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Beltran committed Apr 29, 2022
1 parent 9d15ab1 commit 5e3bf2e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const registerAlertsTableConfiguration = (
registry: AlertsTableConfigurationRegistryContract,
storage: Storage
) => {
if (registry.has(APP_ID)) {
return;
}
const timelineStorage = getTimelinesInStorageByIds(storage, [TimelineId.detectionsPage]);
const alertColumns = timelineStorage?.[TimelineId.detectionsPage]?.columns ?? columns;
registry.register({
Expand Down

0 comments on commit 5e3bf2e

Please sign in to comment.