mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:47:08 +00:00
@@ -67,7 +67,7 @@ function makeTree (leaf, sequences, shots) {
|
||||
async function get (projectId, sequenceId, opts = {}) {
|
||||
const client = await setSurvey(projectId);
|
||||
|
||||
const tree = await definitions.get(projectId);
|
||||
const tree = await definitions.get(projectId) ?? [];
|
||||
const shots = await getShots(client, sequenceId);
|
||||
const sequences = await getSequences(client, sequenceId);
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ async function main () {
|
||||
console.log("currentQCHash != lastQCHash", projectId, currentQCHash, lastQCHash);
|
||||
|
||||
// Fetch definitions and parameters
|
||||
const { definitions, parameters } = await getProjectQCConfig(projectId);
|
||||
const { definitions, parameters } = await getProjectQCConfig(projectId) ?? {};
|
||||
|
||||
if (definitions && parameters) {
|
||||
console.log("PROJECT ID", projectId);
|
||||
|
||||
Reference in New Issue
Block a user