Skip to content

Commit

Permalink
UIEXT-81: Correct usage of required flag
Browse files Browse the repository at this point in the history
UIEXT-81 (File Upload Widget should support upload of multiple files)
  • Loading branch information
ChristianAlbrecht committed Nov 14, 2024
1 parent 8dc892f commit 6c8d48a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion org.knime.js.pagebuilder/src/components/widgets/Widget.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ export default {
},
async mounted() {
// TODO AP-19689 Remove if 'required' functionality implemented
if (this.nodeConfig.viewRepresentation.required) {
if (
this.nodeConfig.viewRepresentation.required &&
this.widgetName !== MultipleFileUploadWidget.__name
) {
this.updateWebNode({
nodeId: this.nodeId,
update: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ const validate = () => {
let isValid = true;
let errorMessage = null;
if (!uploadAPI.value) {
/* if (!uploadAPI.value) {
return { isValid };
}
} */
if (!initialized.value) {
initialized.value = true;
Expand Down

0 comments on commit 6c8d48a

Please sign in to comment.