From 85efaf988a0c0b6d3fd4a0fec08a436dd4249c19 Mon Sep 17 00:00:00 2001 From: f Date: Tue, 23 Mar 2021 11:35:49 -0300 Subject: [PATCH] =?UTF-8?q?un=20array=20vac=C3=ADo=20por=20defecto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #774 --- app/javascript/editor/editor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/editor/editor.ts b/app/javascript/editor/editor.ts index be1180f..b509be7 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':