Skip to content

Commit a62d78b

Browse files
author
kaviarpan
committed
fix: the diy config problem
1 parent 194d116 commit a62d78b

File tree

1 file changed

+5
-1
lines changed
  • web/src/apps/streamis/module/jobConfig

1 file changed

+5
-1
lines changed

web/src/apps/streamis/module/jobConfig/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,11 @@ export default {
224224
emptyWarning = !mapKey.key || !mapKey.key.trim();
225225
if (configuration[key][mapKey.key]) warning = true;
226226
configuration[key][mapKey.key] = mapKey.value || '';
227-
})
227+
});
228+
if ((this.diyMap[key] || []).length <= 1) {
229+
const only = (this.diyMap[key] || [])[0] || {};
230+
emptyWarning = !((!only.key || !only.key.trim()) && (!only.value || !only.value.trim()))
231+
}
228232
});
229233
console.log('configuration', configuration, this.valueMap)
230234
if (emptyWarning) {

0 commit comments

Comments
 (0)