web: fix lint (#10524)

This commit is contained in:
Marc 'risson' Schmitt
2024-07-16 17:42:07 +02:00
committed by GitHub
parent 62c882cb0e
commit 409934196c
2 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ export class AkAdminSidebar extends WithCapabilitiesConfig(AKElement) {
const renderOneSidebarItem: SidebarRenderer = ([path, label, attributes, children]) => {
const properties = Array.isArray(attributes)
? { ".activeWhen": attributes }
: attributes ?? {};
: (attributes ?? {});
if (path) {
properties["path"] = path;
}

View File

@ -167,7 +167,7 @@ export class SearchSelectView extends AKElement {
onSelect(event: SearchSelectSelectMenuEvent) {
this.open = false;
this.value = event.value;
this.displayValue = this.value ? this.optionsMap.get(this.value) ?? this.value ?? "" : "";
this.displayValue = this.value ? (this.optionsMap.get(this.value) ?? this.value ?? "") : "";
this.dispatchEvent(new SearchSelectSelectEvent(this.value));
}
@ -191,7 +191,7 @@ export class SearchSelectView extends AKElement {
@bound
onInput(_event: InputEvent) {
this.value = this.inputRef?.value?.value ?? "";
this.displayValue = this.value ? this.optionsMap.get(this.value) ?? this.value ?? "" : "";
this.displayValue = this.value ? (this.optionsMap.get(this.value) ?? this.value ?? "") : "";
this.dispatchEvent(new SearchSelectInputEvent(this.value));
}
@ -219,7 +219,7 @@ export class SearchSelectView extends AKElement {
}
if (changed.has("value")) {
this.displayValue = this.value
? this.optionsMap.get(this.value) ?? this.value ?? ""
? (this.optionsMap.get(this.value) ?? this.value ?? "")
: "";
}
}