Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Clean data in build editor to prevent writable false issues
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Oct 8, 2021
1 parent 1f7be56 commit 530d727
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/contexts/EditorProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ const EditorProvider = ({ children }) => {
return editorRef.current
}

const buildEditor = async (container, spell, tab, thoth) => {
const buildEditor = async (container, _spell, tab, thoth) => {
// copy spell in case it is read only
const spell = JSON.parse(JSON.stringify(_spell))
// eslint-disable-next-line no-console
console.log('building editor for tab', tab)
const newEditor = await initEditor({
container,
pubSub,
Expand Down

0 comments on commit 530d727

Please sign in to comment.