From 98c40822a2e5a63f6ca30654df28906f95924fa2 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 28 Feb 2022 19:28:59 +0100 Subject: [PATCH] Fix csvToJson script --- assets/layers/charging_station/csvToJson.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/layers/charging_station/csvToJson.ts b/assets/layers/charging_station/csvToJson.ts index ea1d55ac9..30a2e0198 100644 --- a/assets/layers/charging_station/csvToJson.ts +++ b/assets/layers/charging_station/csvToJson.ts @@ -4,6 +4,7 @@ import {TagRenderingConfigJson} from "../../../Models/ThemeConfig/Json/TagRender import ScriptUtils from "../../../scripts/ScriptUtils"; import {LayerConfigJson} from "../../../Models/ThemeConfig/Json/LayerConfigJson"; import FilterConfigJson from "../../../Models/ThemeConfig/Json/FilterConfigJson"; +import {QuestionableTagRenderingConfigJson} from "../../../Models/ThemeConfig/Json/QuestionableTagRenderingConfigJson"; function colonSplit(value: string): string[] { @@ -57,8 +58,8 @@ function loadCsv(file): { function run(file, protojson) { const overview_question_answers = [] - const questions: (TagRenderingConfigJson & { "id": string })[] = [] - const technicalQuestions: (TagRenderingConfigJson & { "id": string })[] = [] + const questions: (QuestionableTagRenderingConfigJson & { "id": string })[] = [] + const technicalQuestions: (QuestionableTagRenderingConfigJson & { "id": string })[] = [] const filterOptions: { question: any, osmTags?: string } [] = [ { question: {