Skip to content

Commit 2ec6d8a

Browse files
author
Néstor Diaz
authored
Hot fix to not send empty link type (#443)
1 parent 15c90ea commit 2ec6d8a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/pages/submission/submission-shared/model/pagetab/pagetab-links.utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export class LinksUtils {
3131
attributes: attributes.filter((at) => ![TYPE_ATTR, POINTER_ATTR].includes(at.name!) && !isAttributeEmpty(at))
3232
} as PtLink;
3333

34-
linkObj.attributes!.push(typeAttr);
3534
if (pointer) {
3635
if (isUrl) {
3736
linkObj.url = pointer;
@@ -48,6 +47,10 @@ export class LinksUtils {
4847
}
4948
}
5049

50+
if (!isAttributeEmpty(typeAttr)) {
51+
linkObj.attributes!.push(typeAttr);
52+
}
53+
5154
return linkObj;
5255
}
5356

0 commit comments

Comments
 (0)