Skip to content

Commit

Permalink
Merge pull request #18961 from mvdbeek/fix_restriction
Browse files Browse the repository at this point in the history
[24.1] Allow passing anything into `format="data"` inputs
  • Loading branch information
nekrut authored Oct 9, 2024
2 parents 80a99f5 + 02636e5 commit 75a51e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/Form/Elements/FormData/FormData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function onBrowse() {
}
function canAcceptDatatype(itemDatatypes: string | Array<string>) {
if (!(props.extensions?.length > 0)) {
if (!(props.extensions?.length > 0) || props.extensions.includes("data")) {
return true;
}
let datatypes: Array<string>;
Expand Down

0 comments on commit 75a51e3

Please sign in to comment.