Skip to content

Commit

Permalink
Merge pull request #27 from xibosignage/develop
Browse files Browse the repository at this point in the history
Add guard for undefined inputLayout passed to XLR (#26)
  • Loading branch information
rubenberttpingol authored Jan 7, 2025
2 parents bb5841b + 876254d commit d17c04e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xibosignage/xibo-layout-renderer",
"version": "1.0.6",
"version": "1.0.7",
"description": "Xibo layout renderer is a shared library that performs rendering of given layout from sources (e.g. CMS Preview, Linux Player, etc.)",
"main": "dist/xibo-layout-renderer.cjs.js",
"module": "dist/xibo-layout-renderer.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/xibo-layout-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export default function XiboLayoutRenderer(
) {
newOptions.xlfUrl =
newOptions.xlfUrl.replace(':layoutId', String(inputLayout.layoutId));
} else if (self.config.platform === 'chromeOS') {
} else if (self.config.platform === 'chromeOS' && inputLayout !== undefined) {
newOptions.xlfUrl = inputLayout.path as string;
}

Expand Down

0 comments on commit d17c04e

Please sign in to comment.