Skip to content

Commit 7dd3745

Browse files
IrtazarazaMarco Scoppetta
authored andcommitted
compute attribtues of neighbours (#3012)
1 parent 5c05413 commit 7dd3745

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

workbase/src/renderer/components/Visualiser/VisualiserStore.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const methods = {
195195
const graknTx = await this.openGraknTx();
196196
const result = (await (await graknTx.query(query)).collect());
197197
if (!result.length) {
198-
this.$notifyInfo('No results were found for your query!');
198+
// this.$notifyInfo('No results were found for your query!');
199199
return;
200200
}
201201

@@ -214,6 +214,11 @@ const methods = {
214214
this.visFacade.addToCanvas(data);
215215
this.visFacade.fitGraphToWindow();
216216
this.updateCanvasData();
217+
218+
const nodesWithAttribtues = await VisualiserUtils.computeAttributes(data.nodes);
219+
220+
this.visFacade.updateNode(nodesWithAttribtues);
221+
217222
this.loadingQuery = false;
218223

219224
// when neighbours are found construct edges and add to graph

0 commit comments

Comments
 (0)