Use nullish coalescing operator

parent 96c0be89
......@@ -131,9 +131,9 @@ export default {
showValidation: false,
state: false,
fields: {
name: initFormField({ value: this.dastScan?.name || '' }),
name: initFormField({ value: this.dastScan?.name ?? '' }),
description: initFormField({
value: this.dastScan?.description || '',
value: this.dastScan?.description ?? '',
required: false,
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