From 6f5e5a4d202b9fd0423b52f4ae9e1ef247530dfb Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Sat, 14 Oct 2023 20:09:07 +0200 Subject: [PATCH] Fix bug for shortcut when there is only one candidate project --- lib/www/server/lib/db/navdata/save.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/www/server/lib/db/navdata/save.js b/lib/www/server/lib/db/navdata/save.js index 5e1c494..30f3a75 100644 --- a/lib/www/server/lib/db/navdata/save.js +++ b/lib/www/server/lib/db/navdata/save.js @@ -269,7 +269,7 @@ async function save (navData, opts = {}) { // Only one candidate, associate with it // console.log("Save into schema", candidates[0].match.schema); await saveOnline(candidates); - navData.payload._schema = candidates[0].match.schema; + navData.payload._schema = candidates[0].schema; } else { // More than one candidate, go for the closest. If more than one active // project with the same preplots, highest numbered schema.