Formatting

This commit is contained in:
Pieter Vander Vennet 2022-12-08 03:01:08 +01:00
parent 420f24f76f
commit 809c0a1ddf
3 changed files with 4 additions and 4 deletions

View file

@ -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 &&

View file

@ -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"),
])
}

View file

@ -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()