Skip to content

Commit

Permalink
Fix formDivId
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarol committed Feb 7, 2025
1 parent b0c3232 commit 8483d85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/importer/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,11 @@ function form(main, pathname) {

const formProps = looseJsParse(jsString);

// TODO only add to metadata when moving form to a fragment
// and then remove it from the fragment divId
// but if not possible, this is fine
preprocessMetadata.formDivId = formProps.divId;

const fields = {
formName: formProps.formName,
formModalLookup: formProps.formModalLookup,
Expand All @@ -550,11 +555,6 @@ function form(main, pathname) {

const formParent = formEl.parentElement;

// TODO only add to metadata when moving form to a fragment
// and then remove it from the fragment divId
// but if not possible, this is fine
preprocessMetadata.formDivId = fields.divId;

const ctaGroup = getPageCTAGroup(pathname);
if (ctaGroup !== 'real-time') {
createBlock(formEl, document, 'form', cellsFromDictionary(fields));
Expand Down

0 comments on commit 8483d85

Please sign in to comment.