Skip to content

Commit 19bb89c

Browse files
Update apps/demos/Demos/DropDownBox/SingleSelection/ReactJs/App.js
Co-authored-by: Copilot <[email protected]> Signed-off-by: assylbek.danyshbek <[email protected]>
1 parent 55d7d14 commit 19bb89c

File tree

1 file changed

+3
-1
lines changed
  • apps/demos/Demos/DropDownBox/SingleSelection/ReactJs

1 file changed

+3
-1
lines changed

apps/demos/Demos/DropDownBox/SingleSelection/ReactJs/App.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ function App() {
3939

4040
const treeViewOnContentReady = useCallback(
4141
(e) => {
42-
e.component.selectItem(treeBoxValue);
42+
if (treeBoxValue) {
43+
e.component.selectItem(treeBoxValue);
44+
}
4345
},
4446
[treeBoxValue],
4547
);

0 commit comments

Comments
 (0)