diff --git a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/MeterAsset.tsx b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/MeterAsset.tsx index 91a956cb3..9dee13d98 100644 --- a/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/MeterAsset.tsx +++ b/Source/Applications/SystemCenter/wwwroot/Scripts/TSX/SystemCenter/Meter/MeterAsset.tsx @@ -42,7 +42,6 @@ import { SelectRoles } from '../Store/UserSettings'; import GenerationAttributes from '../AssetAttribute/Generation'; import StationAuxAttributes from '../AssetAttribute/StationAux'; import StationBatteryAttributes from '../AssetAttribute/StationBattery'; -import { SystemCenterSettingSlice } from '../Store/Store'; declare var homePath: string; @@ -52,9 +51,6 @@ const MeterAssetWindow = (props: IProps) => { const MeterAssetController = new GenericController(`${homePath}api/OpenXDA/DetailedMeterAsset/${props.Meter.ID}`, "AssetName", true); const PagingID = 'MeterAssetPage' - const settings = useAppSelector(SystemCenterSettingSlice.Data); - const settingStatus = useAppSelector(SystemCenterSettingSlice.Status); - const [assetTypes, setAssetTypes] = React.useState([]); const [newEdit, setNewEdit] = React.useState('New'); @@ -79,11 +75,6 @@ const MeterAssetWindow = (props: IProps) => { const [pageInfo, setPageInfo] = React.useState<{ RecordsPerPage: number, NumberOfPages: number, TotalRecords: number }>({ RecordsPerPage: 0, NumberOfPages: 0, TotalRecords: 0 }); const [pageState, setPageState] = React.useState<'error' | 'idle' | 'loading'>('idle'); - React.useEffect(() => { - if (settingStatus == 'unintiated' || settingStatus == 'changed') - dispatch(SystemCenterSettingSlice.Fetch()); - }, [settingStatus]); - React.useEffect(() => { let h = getAssetTypes() h.done((data: Array) => {