From 67528789ed778e52a00e2554be57382dd0e9c729 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Tue, 3 Sep 2024 22:13:17 +0300 Subject: [PATCH] client: Fix open note custom when no terminal --- src/public/app/services/open.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/services/open.js b/src/public/app/services/open.js index b3a1ae08b..05ac9b63b 100644 --- a/src/public/app/services/open.js +++ b/src/public/app/services/open.js @@ -72,7 +72,7 @@ async function openCustom(type, entityId, mime) { const terminal = terminals[index]; if (!terminal) { console.error('Open Note custom: No terminal found!'); - open(getFileUrl(entityId), {url: true}); + open(getFileUrl(type, entityId), {url: true}); return; } exec(`which ${terminal}`, (error, stdout, stderr) => {