Skip to content

Commit d6f0b10

Browse files
committed
chore: fix type error
1 parent ccb0dd9 commit d6f0b10

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: packages/shared/widget-plugin-filtering/src/stores/input/DateInputFilterStore.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AttributeMetaData, DateTimeFormatter, SimpleFormatter } from "mendix";
1+
import { AttributeMetaData, DateTimeFormatter, ListAttributeValue, SimpleFormatter } from "mendix";
22
import { AndCondition, FilterCondition, LiteralExpression } from "mendix/filters";
33
import {
44
and,
@@ -74,10 +74,10 @@ export class DateInputFilterStore
7474
return () => disposers.forEach(unsub => unsub());
7575
}
7676

77-
updateProps(attributes: Array<AttributeMetaData<Date>>): void {
77+
updateProps(attributes: ListAttributeValue[]): void {
7878
if (!comparer.shallow(this._attributes, attributes)) {
7979
this._attributes = attributes;
80-
const formatter = getFormatter(attributes[0]);
80+
const formatter = getFormatter(attributes[0] as AttributeMetaData<Date>);
8181
this.arg1.updateProps(formatter as DateTimeFormatter);
8282
this.arg2.updateProps(formatter as DateTimeFormatter);
8383
}

0 commit comments

Comments
 (0)