Skip to content

Commit

Permalink
databox: fix editable tree
Browse files Browse the repository at this point in the history
  • Loading branch information
4rthem committed Jan 3, 2024
1 parent 1ccf931 commit c83d031
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, {useCallback, useEffect, useRef, useState} from 'react';
import TreeItem from '@mui/lab/TreeItem';
import {TreeItem} from '@mui/x-tree-view';
import {IconButton, Stack, TextField, Theme} from '@mui/material';
import EditIcon from '@mui/icons-material/Edit';
import DoneIcon from '@mui/icons-material/Done';
Expand Down Expand Up @@ -34,7 +34,7 @@ export default function EditableCollectionTree({
const id = node.id;
const remainingPath = nodes.slice(1);
const [value, setValue] = useState<string | undefined>(node.value);
const ref = useRef<HTMLDivElement>(null);
const ref = useRef<HTMLLIElement>(null);

useEffect(() => {
setValue(node.value);
Expand Down

0 comments on commit c83d031

Please sign in to comment.