From 260876c7c938b43c1b8eea56388e6901008a9cf9 Mon Sep 17 00:00:00 2001 From: Jesse Piascik Date: Fri, 13 Sep 2024 14:39:12 -0400 Subject: [PATCH] Make sure path is full path --- lib/project.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/project.js b/lib/project.js index 8f529a20..f01c28c7 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)