refactor: Fix type issues for parameter input components (#9449)

This commit is contained in:
Elias Meire
2024-05-21 15:04:20 +02:00
committed by GitHub
parent cd751e7cc8
commit 711c46f205
36 changed files with 315 additions and 243 deletions

View File

@@ -93,13 +93,8 @@ export default defineComponent({
return;
}
length += (
Array.isArray(this.modelValue[key])
? this.modelValue[key].length > 0
: this.modelValue[key] !== ''
)
? 1
: 0;
const value = this.modelValue[key];
length += (Array.isArray(value) ? value.length > 0 : value !== '') ? 1 : 0;
});
return length;