Fix todays date in editor

[MAILPOET-2652]
This commit is contained in:
Pavel Dohnal
2020-01-23 13:22:33 +01:00
committed by Jack Kitterhing
parent 292c7eb6ec
commit 045cf5d911

View File

@@ -95,7 +95,7 @@ const CustomDateEdit = ({ attributes, setAttributes, clientId }) => {
},
}}
item={{
field: attributes.defaultToday ? moment().format('YYYY-MM-DD') : '',
[clientId]: attributes.defaultToday ? moment().format('YYYY-MM-DD') : '',
}}
onValueChange={() => {}}
/>