Skip to content

Commit d951ba9

Browse files
committed
MC-3865: Content Types With Links Redirect On Storefront If Link Is Empty
Fix TS static failure
1 parent 13af1c6 commit d951ba9

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/converter/attribute

1 file changed

+1
-1
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/converter/attribute/link-href.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class CreateValueForHref implements ConverterInterface {
6464
* @returns {string}
6565
*/
6666
public toDom(name: string, data: DataObject): string {
67-
let link = data[name] as any;
67+
const link = data[name] as any;
6868

6969
if (typeof link === "undefined" || !link[link.type].length) {
7070
return "javascript:void(0)";

0 commit comments

Comments
 (0)