refactor(editor): Replace this.$props (no-changelog) (#5928)

* refactor(editor): Replace this. (no-changelog)

* Lintfix
This commit is contained in:
OlegIvaniv
2023-04-07 12:21:17 +02:00
committed by GitHub
parent 5651a52364
commit 07c360c30d
15 changed files with 60 additions and 61 deletions

View File

@@ -102,16 +102,16 @@ export default Vue.extend({
computed: {
...mapStores(useWorkflowsStore),
showRequiredErrors(): boolean {
if (!this.$props.parameter.required) {
if (!this.parameter.required) {
return false;
}
if (this.blurredEver || this.showValidationWarnings) {
if (this.$props.parameter.type === 'string') {
if (this.parameter.type === 'string') {
return !this.value;
}
if (this.$props.parameter.type === 'number') {
if (this.parameter.type === 'number') {
return typeof this.value !== 'number';
}
}