Skip to content

Commit

Permalink
Merge pull request #38 from mysilio-co/id/bugfix
Browse files Browse the repository at this point in the history
Set EmptySlateJSON as the default value
  • Loading branch information
travis committed Oct 19, 2021
2 parents ce8424b + f275131 commit 53794b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/modals/NewNote.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const TabId = {

export const NewNote = ({ setOpen, isPublic = false }) => {
const [pub, setPublic] = useState(isPublic)
const [value, setNoteValue] = useState()
const [value, setNoteValue] = useState(EmptySlateJSON);

const tabs = [TabId.Concept, TabId.Bookmark];
const [selectedTab, setSelectedTab] = useState(tabs[0]);
Expand Down

1 comment on commit 53794b6

@vercel
Copy link

@vercel vercel bot commented on 53794b6 Oct 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

Please sign in to comment.