Skip to content

Commit

Permalink
had left in some uneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
collins-self committed Nov 22, 2024
1 parent a7f478d commit e7640d0
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -52,9 +51,6 @@ const MeterAssetWindow = (props: IProps) => {
const MeterAssetController = new GenericController<OpenXDA.Types.MeterAsset>(`${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<OpenXDA.Types.AssetType[]>([]);
const [newEdit, setNewEdit] = React.useState<Application.Types.NewEdit>('New');

Expand All @@ -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<OpenXDA.Types.AssetType>) => {
Expand Down

0 comments on commit e7640d0

Please sign in to comment.