Skip to content

Commit

Permalink
Improve typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasstein committed Jul 31, 2023
1 parent 8af47d3 commit d1452f6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export default class FilterActionDefinitionFactory {

private _i18n!: InjectedReference<any>;
private _filterQueryBuilderWidgetFactory!: InjectedReference<any>;
private supportedIds!: InjectedReference<any>;
private supportedIds!: Array<string>;

constructor() {
this.supportedIds = [ID];
}

createDefinitionById(id) {
createDefinitionById(id: string): any {
if (ID !== id) {
return;
}
Expand Down Expand Up @@ -56,7 +56,7 @@ export default class FilterActionDefinitionFactory {
}
},
isDisabledForItem(tocItem) {
// use this method to change the action title since isVisibleForItem is only called once
// use this method to change the action title since isVisibleForItem is only called once
const ref = tocItem.ref;
if (ref._initialDefinitionExpression && ref._initialDefinitionExpression !== ref.definitionExpression
&& ref.definitionExpression !== "1=1") {
Expand Down

0 comments on commit d1452f6

Please sign in to comment.