From aa266da5ac8963f20eb1a606de156ba58ba8a062 Mon Sep 17 00:00:00 2001 From: ticaki Date: Tue, 23 Jan 2024 18:17:34 +0100 Subject: [PATCH] fix txt.matchall --- ioBroker/DEV/NSPanelTs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ioBroker/DEV/NSPanelTs.ts b/ioBroker/DEV/NSPanelTs.ts index ec950bf7..4818d27f 100644 --- a/ioBroker/DEV/NSPanelTs.ts +++ b/ioBroker/DEV/NSPanelTs.ts @@ -6188,7 +6188,7 @@ function GenerateChartPage(page: NSPanel.PageChart): NSPanel.Payload[] { let yAxisTicks : number[] = []; if (!page.items[0].yAxisTicks) { - const sorted = [...txt.matchAll(timeValueRegEx)].map(x => Number(x[1])).sort((x, y) => x < y ? -1 : 1); + const sorted = [...String(txt).matchAll(timeValueRegEx)].map(x => Number(x[1])).sort((x, y) => x < y ? -1 : 1); if (sorted.length === 0) { throw new Error (`Page item ${id} yAxisTicks is undefined and unable to be calculated!`) }