We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 949622d commit 91424feCopy full SHA for 91424fe
blocks/cards/cards.js
@@ -13,10 +13,10 @@ export default function decorate(block) {
13
14
/* wrap each card with link */
15
const existingLink = li.querySelector('a');
16
- if (existingLink?.href) {
17
- const { href } = existingLink;
+ if (existingLink?.textContent) {
+ const { textContent } = existingLink;
18
const wrapperLink = document.createElement('a');
19
- wrapperLink.href = href;
+ wrapperLink.href = textContent;
20
21
// Move all children of li into the wrapperLink
22
while (li.firstChild) {
0 commit comments