From aea6ca0e91a59b231ea1900f364a38cb37d64f16 Mon Sep 17 00:00:00 2001 From: Filipe Leandro Date: Fri, 8 Jan 2021 16:47:43 -0300 Subject: [PATCH 1/2] ENG-1733 added pageTemplate frame sketch fallback if extracting from older environment; --- lib/env-bundler.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/env-bundler.js b/lib/env-bundler.js index c5cf059..16bb1b1 100644 --- a/lib/env-bundler.js +++ b/lib/env-bundler.js @@ -250,7 +250,12 @@ const componentResponseProcessor = { 'configuration.frames[].descr': 'configuration.frames[].description', 'configuration.frames[].mainFrame': 'configuration.frames[].mainFrame', 'configuration.frames[].defaultWidget': 'configuration.frames[].defaultWidget', - 'configuration.frames[].sketch': 'configuration.frames[].sketch', + 'configuration.frames[].sketch': [{ + key: 'configuration.frames[].sketch', + transform: function(sketch) { + return sketch === null ? {x1: 0, x2: 0, y1: 11, y2: 0} : sketch; + } + }], 'template': 'template' }; From 4568dfa24215650fe074e9d6cb20beed14aa795e Mon Sep 17 00:00:00 2001 From: Filipe Leandro Date: Fri, 8 Jan 2021 16:58:45 -0300 Subject: [PATCH 2/2] ENG-1733 fixing default sketch; --- lib/env-bundler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/env-bundler.js b/lib/env-bundler.js index 16bb1b1..55b3018 100644 --- a/lib/env-bundler.js +++ b/lib/env-bundler.js @@ -253,7 +253,7 @@ const componentResponseProcessor = { 'configuration.frames[].sketch': [{ key: 'configuration.frames[].sketch', transform: function(sketch) { - return sketch === null ? {x1: 0, x2: 0, y1: 11, y2: 0} : sketch; + return sketch === null ? {x1: 0, x2: 11, y1: 0, y2: 0} : sketch; } }], 'template': 'template'