karyotype display fails if a guide has no associated chromosome
In statistics page, if a guide has no associated chromosome, the karyotype display fails with such an error:
Uncaught (in promise) TypeError: guide.parentConnection.edges[0] is undefined StatisticsView.vue:240:6
karyotypeObjects StatisticsView.vue:240
karyotypeObjects StatisticsView.vue:237
run reactivity.esm-bundler.js:178
get value reactivity.esm-bundler.js:1147
unref reactivity.esm-bundler.js:1026
get reactivity.esm-bundler.js:1032
default StatisticsView.vue:477
renderFnWithContext runtime-core.esm-bundler.js:766
renderSlot runtime-core.esm-bundler.js:2824
default panel.esm.js:158
renderFnWithContext runtime-core.esm-bundler.js:766
setup runtime-core.esm-bundler.js:1969
renderComponentRoot runtime-core.esm-bundler.js:816
componentUpdateFn runtime-core.esm-bundler.js:5764
run reactivity.esm-bundler.js:178
update runtime-core.esm-bundler.js:5814
callWithErrorHandling runtime-core.esm-bundler.js:158
flushJobs runtime-core.esm-bundler.js:357
How to reproduce the bug
In neo4j db, the following query remove the HAS_FEATURE
relationship that is used to link guide to chromosome.
MATCH (n:Guide {id: 'GD_00000'}) <-[r:HAS_FEATURE]- (c:Chromosome) DELETE r;
Edited by Philippe Bordron