From 0e6897a2950e5161f5139bfcd2586c40ee26cd63 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 15 Aug 2021 19:30:37 +0200 Subject: [PATCH] bugfix: hide heaters, temperature_fans and temperature_sensors with _ as first letter in the name in tempchart Signed-off-by: Stefan Dej --- src/store/printer/tempHistory/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/printer/tempHistory/actions.ts b/src/store/printer/tempHistory/actions.ts index 6d6b2606..dca72240 100644 --- a/src/store/printer/tempHistory/actions.ts +++ b/src/store/printer/tempHistory/actions.ts @@ -58,7 +58,7 @@ export const actions: ActionTree = { commit('setInitSource', tempDataset) const tempDatasetKeys = Object.keys(tempDataset[0]).filter((tmp) => tmp !== "date") - const masterDatasetKeys = tempDatasetKeys.filter((tmp) => !tmp.includes('-')).sort() + const masterDatasetKeys = tempDatasetKeys.filter((tmp) => !tmp.includes('-') && !tmp.startsWith('_')).sort() const series: PrinterTempHistoryStateSerie[] = [] let colorNumber = 0