mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 13:27:08 +00:00
Cope with schema not being detected
This commit is contained in:
@@ -107,7 +107,7 @@ async function getNearestOfflinePreplot (candidates) {
|
||||
}
|
||||
}
|
||||
client.release();
|
||||
const _schema = results.sort( (a, b) => a.distance - b.distance).shift()._schema;
|
||||
const _schema = results.sort( (a, b) => a.distance - b.distance).shift()?._schema;
|
||||
return candidates.find(c => c._schema == _schema);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user