Skip to content

Commit

Permalink
Fix DocumentNav
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntler committed Oct 16, 2022
1 parent 530c027 commit ae52fe6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/DocumentNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export const DocumentNav: FC<{}> = () => {

if (documents.length <= 1 || !currentDocument) return null;

let fileName = currentDocument.uri;

let fileName = currentDocument.uri || "";
const splitURL = fileName.split("/");
if (splitURL.length) {
fileName = splitURL[splitURL.length - 1];
Expand Down

0 comments on commit ae52fe6

Please sign in to comment.