refactor(ui): continue wiring up CA logic across (wip)

It works!
This commit is contained in:
psychedelicious
2024-05-01 21:36:51 +10:00
committed by Kent Keirsey
parent 0e55488ff6
commit 905baf2787
52 changed files with 1596 additions and 951 deletions

View File

@ -5,9 +5,6 @@ import { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
const selectValidLayerCount = createSelector(selectControlLayersSlice, (controlLayers) => {
if (!controlLayers.present.isEnabled) {
return 0;
}
const validLayers = controlLayers.present.layers
.filter(isRegionalGuidanceLayer)
.filter((l) => l.isEnabled)