File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { products, menuItems } from './data.ts';
1010import type { Product , MenuItem } from './types' ;
1111
1212const App = ( ) => {
13- const [ contextMenuItems , setContextMenuItems ] = useState < MenuItem [ ] > ( [ ... menuItems ] ) ;
13+ const [ contextMenuItems , setContextMenuItems ] = useState < MenuItem [ ] > ( menuItems ) ;
1414 const [ logItems , setLogItems ] = useState < string [ ] > ( [ ] ) ;
1515 const [ selectedTreeItem , setSelectedTreeItem ] = useState < Product | undefined > ( undefined ) ;
1616 const treeViewRef = useRef < TreeViewRef > ( null ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import List from 'devextreme-react/list';
55import { products , menuItems } from './data.js' ;
66
77const App = ( ) => {
8- const [ contextMenuItems , setContextMenuItems ] = useState ( [ ... menuItems ] ) ;
8+ const [ contextMenuItems , setContextMenuItems ] = useState ( menuItems ) ;
99 const [ logItems , setLogItems ] = useState ( [ ] ) ;
1010 const [ selectedTreeItem , setSelectedTreeItem ] = useState ( undefined ) ;
1111 const treeViewRef = useRef ( null ) ;
You can’t perform that action at this time.
0 commit comments