From e49630d4f08629bca278d1b98a190e8336c5b1f2 Mon Sep 17 00:00:00 2001 From: Tomas Bures Date: Sat, 7 Dec 2019 14:08:12 +0100 Subject: [PATCH] Fixed warning about unsaved data when leaving empty campaign edit. --- client/src/templates/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/templates/helpers.js b/client/src/templates/helpers.js index eca7de53..830306ec 100644 --- a/client/src/templates/helpers.js +++ b/client/src/templates/helpers.js @@ -141,7 +141,7 @@ export function getTemplateTypes(t, prefix = '', entityTypeId = ResourceType.TEM return null; }, initData: () => ({ - [prefix + 'mosaicoTemplate']: '', + [prefix + 'mosaicoTemplate']: null, [prefix + 'mosaicoData']: {} }), afterLoad: data => {