@@ -4,7 +4,6 @@ import { StaticSelectFilterStore } from "@mendix/widget-plugin-filtering/stores/
44import { InputFilterStore , attrgroupFilterStore } from "@mendix/widget-plugin-filtering/stores/input/store-utils" ;
55import { ensure } from "@mendix/widget-plugin-platform/utils/ensure" ;
66import { FilterCondition } from "mendix/filters" ;
7- import { ListAttributeValue , ListAttributeListValue } from "mendix" ;
87import { action , computed , makeObservable } from "mobx" ;
98import { ReactNode , createElement } from "react" ;
109import { ColumnsType } from "../../../../typings/DatagridProps" ;
@@ -59,7 +58,7 @@ export class ColumnFilterStore implements IColumnFilterStore {
5958
6059 if ( store . storeType === "refselect" ) {
6160 store . updateProps ( this . toRefselectProps ( props ) ) ;
62- } else if ( isListAttributeValue ( props . attribute ) ) {
61+ } else if ( props . attribute ) {
6362 store . updateProps ( [ props . attribute ] ) ;
6463 }
6564 }
@@ -85,7 +84,7 @@ export class ColumnFilterStore implements IColumnFilterStore {
8584 return new RefFilterStore ( this . toRefselectProps ( props ) , dsViewState ) ;
8685 }
8786
88- if ( isListAttributeValue ( props . attribute ) ) {
87+ if ( props . attribute ) {
8988 return attrgroupFilterStore ( props . attribute . type , [ props . attribute ] , dsViewState ) ;
9089 }
9190
@@ -124,11 +123,5 @@ export class ColumnFilterStore implements IColumnFilterStore {
124123 }
125124}
126125
127- const isListAttributeValue = (
128- attribute ?: ListAttributeValue | ListAttributeListValue
129- ) : attribute is ListAttributeValue => {
130- return ! ! ( attribute && attribute . isList === false ) ;
131- } ;
132-
133126const errorMessage = ( propName : string ) : string =>
134127 `Can't map ColumnsType to AssociationProperties: ${ propName } is undefined` ;
0 commit comments