SidneyNemzer / snippets

A Chrome extension that allows you to create and edit JavaScript code snippets, which are synced to all your computers
https://chrome.google.com/webstore/detail/snippets/fakjeijchchmicjllnabpdkclfkpbiag
63 stars 9 forks source link

TypeError: Cannot read property `content` of undefined #26

Closed SidneyNemzer closed 3 years ago

SidneyNemzer commented 3 years ago
TypeError: Cannot read property 'content' of undefined
  at content (src/editor/components/Main.js:75:25)
  at renderEditor (src/editor/components/Main.js:134:16)
  at renderMain (src/editor/components/Main.js:198:18)
  at render (node_modules/react-dom/cjs/react-dom.production.min.js:173:191)
  at Qg (node_modules/react-dom/cjs/react-dom.production.min.js:172:263)
  at Og (node_modules/react-dom/cjs/react-dom.production.min.js:180:29)
  at Tg (node_modules/react-dom/cjs/react-dom.production.min.js:232:21)
  at bi (node_modules/react-dom/cjs/react-dom.production.min.js:233:283)
  at ci (node_modules/react-dom/cjs/react-dom.production.min.js:249:347)
  at Di (node_modules/react-dom/cjs/react-dom.production.min.js:248:143)

I ran into this when deleting a snippet. The first snippet too, maybe related.

It seemed to delete the content of the snippet, saving an empty snippet.