Skip to content

Commit bf6b980

Browse files
fix case with server side trigger without subscription
1 parent 48c6262 commit bf6b980

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/devextreme/js/__internal/core/license/trial_panel.client.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,11 @@ class DxLicenseTrigger extends SafeHTMLElement {
304304
const license = document.createElement(componentNames.panel);
305305

306306
Object.values(attributeNames).forEach((attrName) => {
307-
license.setAttribute(
308-
attrName,
309-
this.getAttribute(attrName) as string,
310-
);
307+
const attrValue = this.getAttribute(attrName);
308+
309+
if (attrValue) {
310+
license.setAttribute(attrName, attrValue);
311+
}
311312
});
312313

313314
license.setAttribute(DATA_PERMANENT_ATTRIBUTE, '');

0 commit comments

Comments
 (0)