mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-08 08:02:27 +00:00
fix(frontend): Disable the insert button when required fields are empty strings (#3659)
This commit is contained in:
@@ -148,8 +148,9 @@
|
||||
$: if (schema) {
|
||||
const requiredFields = schema.required ?? []
|
||||
const filledFields = Object.keys(args).filter(
|
||||
(key) => args[key] !== undefined && args[key] !== null
|
||||
(key) => args[key] !== undefined && args[key] !== null && args[key] !== ''
|
||||
)
|
||||
|
||||
isInsertable = requiredFields.every((field) => filledFields.includes(field))
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user