Skip to content

Commit

Permalink
Make sure path is full path
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Sep 13, 2024
1 parent fea9ff1 commit 260876c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,8 @@ module.exports = class WorkerProject extends Project {
* @param {Boolean} opts.emit - Whether to emit the new card event
*/
newCard({ list, path, template, title, comments, emit = true }) {
if (!path || !_path.parse(path).ext) path = this.getFullPath(this.getNewCardsFile({title}))
if (!path || !_path.parse(path).ext) path = this.getNewCardsFile({title})
path = this.getFullPath(path)

const { isFile, isDirectory } = this.preparePathForWriting(path)

Expand Down

0 comments on commit 260876c

Please sign in to comment.