We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15c90ea commit 2ec6d8aCopy full SHA for 2ec6d8a
1 file changed
src/app/pages/submission/submission-shared/model/pagetab/pagetab-links.utils.ts
@@ -31,7 +31,6 @@ export class LinksUtils {
31
attributes: attributes.filter((at) => ![TYPE_ATTR, POINTER_ATTR].includes(at.name!) && !isAttributeEmpty(at))
32
} as PtLink;
33
34
- linkObj.attributes!.push(typeAttr);
35
if (pointer) {
36
if (isUrl) {
37
linkObj.url = pointer;
@@ -48,6 +47,10 @@ export class LinksUtils {
48
47
}
49
50
+ if (!isAttributeEmpty(typeAttr)) {
51
+ linkObj.attributes!.push(typeAttr);
52
+ }
53
+
54
return linkObj;
55
56
0 commit comments