Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: When select_default_value is null, editing the playbook reports an error #4644

Merged
merged 1 commit into from
Feb 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/views/ops/Template/components/Variable.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<template>
<template>
<div>
<div class="variables el-data-table">
<el-table :data="variables" class="el-table--fit el-table--border">
Expand Down Expand Up @@ -81,7 +81,7 @@ export default {
if (oldVal === undefined) return
if (newVal.length > 0 || !this.initial) {
newVal.map((item) => {
item.default_value = item.text_default_value || item.select_default_value
item.default_value = item.text_default_value || item.select_default_value || undefined
})
this.$emit('input', newVal)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The above code does not include any regular expressions or patterns to detect irregularities, potential issues, or optimize the script. Could you please specify some areas where you need checks?

Expand Down