-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent form editor from breaking on invalid expression on filep…
…icker prop
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ export function FilePicker(props) { | |
const { field, onChange, domId, errors = [], disabled, readonly, required, value: filesKey = '' } = props; | ||
const { label, multiple = false, accept = '' } = field; | ||
/** @type {string} */ | ||
const evaluatedAccept = useSingleLineTemplateEvaluation(accept); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
nikku
Member
|
||
const evaluatedAccept = useSingleLineTemplateEvaluation(accept, { debug: true }); | ||
const evaluatedMultiple = useBooleanExpressionEvaluation(multiple); | ||
const errorMessageId = `${domId}-error-message`; | ||
/** @type {File[]} */ | ||
|
Could you share what this does, and why it fixes the issue?