Use nullish coalescing operator

parent 96c0be89
...@@ -131,9 +131,9 @@ export default { ...@@ -131,9 +131,9 @@ export default {
showValidation: false, showValidation: false,
state: false, state: false,
fields: { fields: {
name: initFormField({ value: this.dastScan?.name || '' }), name: initFormField({ value: this.dastScan?.name ?? '' }),
description: initFormField({ description: initFormField({
value: this.dastScan?.description || '', value: this.dastScan?.description ?? '',
required: false, required: false,
skipValidation: true, skipValidation: true,
}), }),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment