aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/odlux/apps/performanceHistoryApp/src/utils')
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx2
-rw-r--r--sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts6
2 files changed, 4 insertions, 4 deletions
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx
index 52b5ddb58..3240f73f1 100644
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx
+++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/chartUtils.tsx
@@ -69,7 +69,7 @@ export const lineChart = (chartPagedData: IDataSetsObject) => {
export const sortDataByTimeStamp = <T extends ITimeStamp>(_rows: T[]): T[] => {
return (_rows.sort((a, b) => {
- const result = Date.parse(a["utcTimeStamp"]) - Date.parse(b["utcTimeStamp"]);
+ const result = Date.parse(a["timeStamp"]) - Date.parse(b["timeStamp"]);
return isNaN(result) ? 0 : result;
}));
} \ No newline at end of file
diff --git a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts
index 865d89c88..b5a3a3f36 100644
--- a/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts
+++ b/sdnr/wt/odlux/apps/performanceHistoryApp/src/utils/tableUtils.ts
@@ -18,7 +18,7 @@
import { ColumnType, ColumnModel } from '../../../../framework/src/components/material-table';
import { PmDataInterval } from '../models/performanceDataType';
-import { getPmDataInterval } from '../plugin';
+import { getPmDataInterval } from '../pluginPerformance';
export const addColumnLabels = <T>(name: string, title: string, disableFilter = true, disableSorting = true): ColumnModel<T> => {
return { property: name as keyof T, title: title, type: ColumnType.text, disableFilter: disableFilter, disableSorting: disableSorting };
@@ -27,9 +27,9 @@ export const addColumnLabels = <T>(name: string, title: string, disableFilter =
export function getFilter(): string {
switch (getPmDataInterval()) {
case PmDataInterval.pmInterval15Min:
- return "sdnperformance/historicalperformance15min";
+ return "pmdata-15m";
case PmDataInterval.pmInterval24Hours:
- return "sdnperformance/historicalperformance24h";
+ return "pmdata-24h";
default:
throw new Error("Unknown time intervall");
}