Skip to content

Commit

Permalink
FIO-9205: fixed labels in select filter feature (#5889)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatrinKhilko authored Oct 30, 2024
1 parent b0c1a72 commit b7754de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ export default class SelectComponent extends ListComponent {
}
// Check to see if we need to save off the template data into our metadata.
const templateValue = this.component.reference && value?._id ? value._id.toString() : value;
const shouldSaveData = !valueIsObject || this.component.reference;
const shouldSaveData = (!valueIsObject || this.component.reference) && !this.inDataTable;
if (!_.isNil(templateValue) && shouldSaveData && this.templateData && this.templateData[templateValue] && this.root?.submission) {
const submission = this.root.submission;
if (!submission.metadata) {
Expand Down

0 comments on commit b7754de

Please sign in to comment.