Skip to content

Commit

Permalink
Set initial edit-state to false for isomorphic components (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
skrhlm authored Jan 27, 2022
1 parent ab6c90d commit 61c5839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/djedi-json/src/core/Editable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Editable: React.FC<{
const { setTree } = useCMS();

// STATES
const [editing, setEdit] = React.useState(isomorphic);
const [editing, setEdit] = React.useState(false);
const [over, setOver] = React.useState(false);

const append = React.useCallback(
Expand Down

0 comments on commit 61c5839

Please sign in to comment.