Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
julijaovcinnikova committed Nov 27, 2024
1 parent 79652cd commit b6672ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/imports/client/custom/vq/js/transformations.js
Original file line number Diff line number Diff line change
Expand Up @@ -1510,8 +1510,9 @@ function setSchemaNamesForQuery(abstractQueryTable, schemaNamesTable, parentSche
return schemaNamesTable;
}

async function getSchemaNameForElement(){
const selected_elem_id = Session.get("activeElement");
async function getSchemaNameForElement(elem_id){
let selected_elem_id = Session.get("activeElement");
if(typeof elem_id !== "undefined" && elem_id !== null) selected_elem_id = elem_id;
let tempSymbolTable = await generateSymbolTable(true);
let sc = await dataShapes.schema.schema;
let schemaNames = setSchemaNamesForQuery(tempSymbolTable["abstractQueryTable"], [], sc);
Expand All @@ -1526,6 +1527,7 @@ async function getSchemaNameForElement(){
}
}
}

return schemaNameFromABS;
}

Expand Down

0 comments on commit b6672ff

Please sign in to comment.