Skip to content

Commit

Permalink
feat(spa): if an array is provided, get the first docmap
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewedstrom committed Nov 27, 2023
1 parent d4c37de commit dff73d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/spa/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
function displayWidgetWithDocmapLiteral() {
json = JSON.parse(searchInput);
if (Array.isArray(json)) {
json = json[0];
}
docmap = json;
showContent = true;
key += 1;
Expand Down

0 comments on commit dff73d7

Please sign in to comment.