From 809c0a1ddf72c5d421dd8179fcf6da76ab087bbc Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Thu, 8 Dec 2022 03:01:08 +0100 Subject: [PATCH] Formatting --- Logic/FeatureSource/Sources/FilteringFeatureSource.ts | 2 +- Models/ThemeConfig/TagRenderingConfig.ts | 2 +- UI/ImportFlow/ImportViewerGui.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Logic/FeatureSource/Sources/FilteringFeatureSource.ts b/Logic/FeatureSource/Sources/FilteringFeatureSource.ts index bfac081dc..e6f1999b4 100644 --- a/Logic/FeatureSource/Sources/FilteringFeatureSource.ts +++ b/Logic/FeatureSource/Sources/FilteringFeatureSource.ts @@ -98,7 +98,7 @@ export default class FilteringFeatureSource implements FeatureSourceForLayer, Ti } } - for (const filter of (globalFilters ?? [])) { + for (const filter of globalFilters ?? []) { const neededTags: TagsFilter = filter?.currentFilter if ( neededTags !== undefined && diff --git a/Models/ThemeConfig/TagRenderingConfig.ts b/Models/ThemeConfig/TagRenderingConfig.ts index 4abc9367c..2bb247a30 100644 --- a/Models/ThemeConfig/TagRenderingConfig.ts +++ b/Models/ThemeConfig/TagRenderingConfig.ts @@ -685,7 +685,7 @@ export default class TagRenderingConfig { if (this.condition !== undefined && !this.condition?.matchesProperties({})) { condition = new Combine([ "This tagrendering is only visible in the popup if the following condition is met:", - new FixedUiElement(this.condition.asHumanString(false, false, {})).SetClass("code") + new FixedUiElement(this.condition.asHumanString(false, false, {})).SetClass("code"), ]) } diff --git a/UI/ImportFlow/ImportViewerGui.ts b/UI/ImportFlow/ImportViewerGui.ts index 6010ab587..0b7e75e44 100644 --- a/UI/ImportFlow/ImportViewerGui.ts +++ b/UI/ImportFlow/ImportViewerGui.ts @@ -441,8 +441,8 @@ class ImportInspector extends VariableUiElement { } // We only care about the properties here let props: NoteProperties[] = notes["success"].features.map((f) => f.properties) - if(userDetails["uid"]){ - props = props.filter(n => n.comments[0].uid === userDetails["uid"]) + if (userDetails["uid"]) { + props = props.filter((n) => n.comments[0].uid === userDetails["uid"]) } const perBatch: NoteState[][] = Array.from( ImportInspector.SplitNotesIntoBatches(props).values()