Skip to content

Commit e33237c

Browse files
committed
ui; fix runcutomaction date input
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 842a53d commit e33237c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ui/src/views/extension/RunCustomAction.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<a-date-picker
6262
v-else-if="field.type === 'DATE'"
6363
show-time
64-
format="YYYY-MM-DD HH:mm:ss"
64+
v-model:value="form[field.name]"
6565
:placeholder="field.name"
6666
v-focus="fieldIndex === 0"
6767
/>
@@ -244,6 +244,10 @@ export default {
244244
keys = keys.filter(k => k !== 'customactionid')
245245
for (const key of keys) {
246246
var value = values[key]
247+
const fieldDef = this.currentParameters.find(f => f.name === key)
248+
if (fieldDef?.type === 'DATE' && value instanceof Date) {
249+
value = value.toISOString()
250+
}
247251
if (value !== undefined && value != null &&
248252
(typeof value !== 'string' || (typeof value === 'string' && value.trim().length > 0))) {
249253
params['parameters[0].' + key] = value

0 commit comments

Comments
 (0)