Fix selectbox issue with domain connection type #689

This commit is contained in:
the-djmaze 2022-11-21 09:01:59 +01:00
parent 7878b542a5
commit 2d832ff5ea
5 changed files with 15 additions and 15 deletions

View file

@ -73,7 +73,7 @@ ko.bindingHandlers['options'] = {
if (allBindings['has']('optionsCaption')) {
captionValue = ko.utils.unwrapObservable(allBindings.get('optionsCaption'));
// If caption value is null or undefined, don't show a caption
if (captionValue !== null && captionValue !== undefined) {
if (captionValue != null) {
filteredArray.unshift(captionPlaceholder);
}
}