Skip to content

Commit 56f5d15

Browse files
committed
fix(service): proper error if used without url from config
1 parent 7e6357f commit 56f5d15

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ speed-measure-plugin.json
2222
*.launch
2323
.settings/
2424
*.sublime-workspace
25+
*.iml
2526

2627
# IDE - VSCode
2728
.vscode/*

projects/elements/src/lib/lazy-elements/lazy-elements-loader.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class LazyElementsLoaderService {
7373
const config = this.getElementConfig(tag);
7474

7575
if (!url) {
76-
if (!config) {
76+
if (!config || !config.url) {
7777
throw new Error(`${LOG_PREFIX} - url for <${tag}> not found`);
7878
}
7979
url = config.url;

0 commit comments

Comments
 (0)