fix: format check for datetime attribute in edit modal

This commit is contained in:
Arman
2023-04-11 10:08:42 +02:00
parent c368792155
commit c576e5776e
@@ -21,7 +21,7 @@
$: option = options.find((option) => {
if (selectedAttribute) {
if ('format' in selectedAttribute) {
if ('format' in selectedAttribute && selectedAttribute.format) {
return option?.format === selectedAttribute?.format;
} else {
return option?.type === selectedAttribute?.type;