diff --git a/packages/common/src/utils.ts b/packages/common/src/utils.ts index 0f8a32e..43f9dd5 100644 --- a/packages/common/src/utils.ts +++ b/packages/common/src/utils.ts @@ -61,7 +61,7 @@ export const getNotebookPath = (): string => { if (isGitRefSpecified()) { // Strip the file extension from the notebook path. - return localNotebookPath.split('.').slice(0, -1).join('.') + return localNotebookPath.split('.').slice(0, -1).join('.') || localNotebookPath } else { return localNotebookPath }