Fix double registry bug (#131239)

This commit is contained in:
Esteban Beltran 2022-04-29 17:50:56 +02:00 committed by GitHub
parent 78ed6deed4
commit f476109d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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({