Skip to content

Commit

Permalink
Merge pull request #825 from adobecom/promptcard
Browse files Browse the repository at this point in the history
MWPW-157776 Fix a bug
  • Loading branch information
TsayAdobe committed Sep 25, 2024
2 parents 55524e6 + 7544f9b commit b7fee35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acrobat/blocks/prompt-card/prompt-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function createBlocks(element, blockArray, templateCfg) {
const { parentNode } = element;
for (const [i, cfg] of blockArray.entries()) {
const blockEl = createTag('div', { class: 'prompt-card' });
if (templateCfg.rows && i > 0) blockEl.classList.add('hidden');
if (templateCfg?.rows && i > 0) blockEl.classList.add('hidden');
await createBlock(blockEl, { ...templateCfg, ...cfg });
parentNode.insertBefore(blockEl, element.previousSibling);
}
Expand Down

0 comments on commit b7fee35

Please sign in to comment.