From 759bc72cebd437c4b3d5980238f562d10a3c25a1 Mon Sep 17 00:00:00 2001 From: Dank074 Date: Tue, 3 Aug 2021 02:22:41 -0500 Subject: [PATCH] rename settype array --- src/mapping/json/figuredata/IFigureData.ts | 2 +- src/mapping/mappers/FigureDataMapper.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mapping/json/figuredata/IFigureData.ts b/src/mapping/json/figuredata/IFigureData.ts index 98a332a..86e7901 100644 --- a/src/mapping/json/figuredata/IFigureData.ts +++ b/src/mapping/json/figuredata/IFigureData.ts @@ -4,5 +4,5 @@ import { IFigureDataSetType } from './IFigureDataSetType'; export interface IFigureData { palettes?: IFigureDataPalette[]; - sets?: IFigureDataSetType[]; + setTypes?: IFigureDataSetType[]; } diff --git a/src/mapping/mappers/FigureDataMapper.ts b/src/mapping/mappers/FigureDataMapper.ts index f986f4e..43392f1 100644 --- a/src/mapping/mappers/FigureDataMapper.ts +++ b/src/mapping/mappers/FigureDataMapper.ts @@ -39,9 +39,9 @@ export class FigureDataMapper extends Mapper { if(xml.sets.length) { - output.sets = []; + output.setTypes = []; - FigureDataMapper.mapFigureDataSetTypes(xml.sets, output.sets); + FigureDataMapper.mapFigureDataSetTypes(xml.sets, output.setTypes); } } }