Skip to content

Commit

Permalink
Check null when adding relative URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed May 13, 2024
1 parent ecf7b4a commit b9b3879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion products/jbrowse-web/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function filterSessionInPlace(node: IAnyStateTreeNode, type: IAnyType) {
type Config = SnapshotOut<AnyConfigurationModel>

export function addRelativeUris(config: Config, base: URL) {
if (typeof config === 'object') {
if (typeof config === 'object' && config !== null) {
for (const key of Object.keys(config)) {
if (typeof config[key] === 'object') {
addRelativeUris(config[key], base)
Expand Down

0 comments on commit b9b3879

Please sign in to comment.