Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Sep 30, 2024
1 parent 47de66c commit 7a1c553
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export default class DatatableActionDefinitionFactory {
this.supportedIds = [ID];
}

public createDefinitionById(id: string): ActionDefinition {
public createDefinitionById(id: string): ActionDefinition | undefined {
if (ID !== id) {
return;
}
const i18n = this._i18n.get();
const agsStoreFactory = this._agsStoreFactory;
const agsStoreFactory = this._agsStoreFactory!;
// eslint-disable-next-line @typescript-eslint/no-this-alias
const that = this;

Expand All @@ -59,7 +59,7 @@ export default class DatatableActionDefinitionFactory {
return true;
} else if (capabilities?.operations?.supportsQuery) {
return true;
} else if (parent.visibilityMode === "exclusive") {
} else if (parent?.visibilityMode === "exclusive") {
return ref.sublayers && tocItem.listMode === "hide-children";
}
else {
Expand Down

0 comments on commit 7a1c553

Please sign in to comment.