Skip to content

Commit

Permalink
fix: handle missing path
Browse files Browse the repository at this point in the history
This makes sure the deployment tool can still open for configs
broken in 5.28 and 5.29.

Related to #4694 (comment)
  • Loading branch information
barmac committed Nov 20, 2024
1 parent 2c92b9a commit bb996b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -680,5 +680,5 @@ async function withSerializedAttachments(deployment, getPath) {
}

function basename(filePath) {
return filePath.split('\\').pop().split('/').pop();
return filePath ? filePath.split('\\').pop().split('/').pop() : '<unnamed>';
}

0 comments on commit bb996b6

Please sign in to comment.