forked from MapComplete/MapComplete
Fix: fix broken delete button
This commit is contained in:
parent
ad1470ecbc
commit
b2a937f4d8
2 changed files with 8 additions and 5 deletions
|
|
@ -29,6 +29,9 @@ export class And extends TagsFilter {
|
|||
and: ReadonlyArray<FlatTag | (Or & OptimizedTag)>
|
||||
): TagsFilterClosed & OptimizedTag
|
||||
public static construct(and: ReadonlyArray<TagsFilter>): TagsFilter {
|
||||
if (and === undefined) {
|
||||
return undefined
|
||||
}
|
||||
if (and.length === 1) {
|
||||
return and[0]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue