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

Conversation

fit2bot
Copy link
Contributor

@fit2bot fit2bot commented Feb 17, 2025

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

@@ -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?

@fit2bot fit2bot requested a review from a team February 17, 2025 03:17
@w940853815 w940853815 merged commit 59945ad into dev Feb 17, 2025
6 checks passed
@w940853815 w940853815 deleted the pr@dev@fix_edit_playbook_error branch February 17, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants