This commit is contained in:
crschnick 2024-05-14 08:23:36 +00:00
parent a09a3238cf
commit d155dcdeb2

View file

@ -52,7 +52,7 @@ public class ContextualFileReferenceChoiceComp extends Comp<CompStructure<HBox>>
this.fileSystem.setValue(val);
});
this.fileSystem.addListener((observable, oldValue, newValue) -> {
fileSystem.setValue(newValue.get().ref());
fileSystem.setValue(newValue.get() != null ? newValue.get().ref() : null);
});
this.filePath = filePath;
}