Skip to content

Commit

Permalink
Refactor outputFns.js to handle different types of input
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Mar 18, 2024
1 parent 25e9e45 commit 590fe52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/include/outputFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ var _outputFns = new Map([
x.obj = $path(_rd, x.path)
if (isUnDef(x.title)) x.title = x.path
} else {
if (isString(_rd)) x.obj = _rd
if (isString(_rd))
x.obj = _rd
else if (isObject(_rd))
x.obj = $path(_rd, "@")
}
})
})
Expand Down

0 comments on commit 590fe52

Please sign in to comment.