Skip to content

Commit de56ba7

Browse files
committed
fix: reload content if not found
1 parent 5d5e9eb commit de56ba7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/pluggableWidgets/combobox-web/src/helpers/Database/DatabaseSingleSelectionSelector.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ export class DatabaseSingleSelectionSelector<T extends string | Big, R extends E
106106
// if the value is not in the options list, but there is a value from attribute
107107
// there is probably a mismatch between the value and the datasource
108108
// logical next step is to try to reload the attribute value
109-
// this.options.loadSelectedValue(targetAttribute.value?.toString(), valueSourceAttribute?.id);
109+
if (allOptions.length <= 1) {
110+
this.options.loadSelectedValue(targetAttribute.value?.toString(), valueSourceAttribute?.id);
111+
}
110112
}
111113
} else {
112114
// should hit on initial condition whereas:

0 commit comments

Comments
 (0)