Fix bug for shortcut when there is only one candidate project

This commit is contained in:
D. Berge
2023-10-14 20:09:07 +02:00
parent 9e73cb7e00
commit 6f5e5a4d20

View File

@@ -269,7 +269,7 @@ async function save (navData, opts = {}) {
// Only one candidate, associate with it // Only one candidate, associate with it
// console.log("Save into schema", candidates[0].match.schema); // console.log("Save into schema", candidates[0].match.schema);
await saveOnline(candidates); await saveOnline(candidates);
navData.payload._schema = candidates[0].match.schema; navData.payload._schema = candidates[0].schema;
} else { } else {
// More than one candidate, go for the closest. If more than one active // More than one candidate, go for the closest. If more than one active
// project with the same preplots, highest numbered schema. // project with the same preplots, highest numbered schema.