diff --git a/lib/project.js b/lib/project.js index 8f529a2..f01c28c 100644 --- a/lib/project.js +++ b/lib/project.js @@ -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)