From c1dc24db0011f8723b3dfb5cad2896f39b0906f7 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 28 Jan 2021 22:49:31 -0500 Subject: [PATCH] Afform Gui - Fix html preview to use complete form --- ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js b/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js index 4cbe9a44f2..288a4bb503 100644 --- a/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js +++ b/ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js @@ -75,7 +75,7 @@ $scope.updateLayoutHtml = function() { $scope.layoutHtml = '...Loading...'; - crmApi4('Afform', 'convert', {layout: [editor.layout], from: 'deep', to: 'html', formatWhitespace: true}) + crmApi4('Afform', 'convert', {layout: $scope.afform.layout, from: 'deep', to: 'html', formatWhitespace: true}) .then(function(r){ $scope.layoutHtml = r[0].layout || '(Error)'; }) -- 2.25.1