diff --git a/packages/filter/src/views/data-input-views.tsx b/packages/filter/src/views/data-input-views.tsx index 87bd739..53755e2 100644 --- a/packages/filter/src/views/data-input-views.tsx +++ b/packages/filter/src/views/data-input-views.tsx @@ -73,8 +73,11 @@ export const presetDataInputSpecs: DataInputViewSpec[] = [ if (!requiredDataSchema.length) { return null; } - const value = - (rule.args?.[0] as Date | undefined)?.toISOString().slice(0, 10) ?? ""; + + const value = rule.args?.[0] + ? new Date(rule.args?.[0] as Date).toISOString().slice(0, 10) + : ""; + return (