Skip to content

Commit

Permalink
Fix isolation for the first (index = 0) example
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Jun 17, 2021
1 parent 3dffa2e commit faf749c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/utils/getInfoFromHash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function getInfoFromHash(
isolate: shouldIsolate,
hashArray,
targetName: hashArray[0],
targetIndex: parseInt(targetHash, 10) || targetHash,
targetIndex: parseInt(targetHash, 10) ?? targetHash,
};
}
return {};
Expand Down

0 comments on commit faf749c

Please sign in to comment.