Commit 257d824
fix: ARenderer TypeError when href undefined
Fixes TypeError on `href.lenght` when href is undefined
- tests `typeof href` is string before reading its length
`useNormalizedUrl` can return `undefined` if it fails to parse absolute an url (see: normalizeResourceLocator.ts)
> `[TypeError: Cannot read property 'length' of undefined]`1 parent 5636b6e commit 257d824
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments