diff --git a/app/javascript/editor/editor.ts b/app/javascript/editor/editor.ts index be1180fe..b509be7f 100644 --- a/app/javascript/editor/editor.ts +++ b/app/javascript/editor/editor.ts @@ -281,7 +281,7 @@ document.addEventListener("turbolinks:load", () => { const flash = document.querySelector('.js-flash') if (flash) { - const keys = JSON.parse(flash.dataset.keys || '') + const keys = JSON.parse(flash.dataset.keys || '[]') switch (flash.dataset.target) { case 'editor':