File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,14 @@ function paginatedGraphVisualization({
5151
5252 neoViz . registerOnEvent ( NeoVis . NeoVisEvents . CompletionEvent , ( event ) => {
5353 if ( event . recordCount == 0 ) {
54- if ( index = 0 ) {
55- log . error ( 'No query results. Nothing to visualize. Check the query and if the nodes and properties have been written.' )
54+ if ( index === 0 ) {
55+ const message = 'No query results. Nothing to visualize. Check the query and if the nodes and properties have been written.' ;
56+ console . warn ( message )
57+ indexedVisualizationContainer . classList . add ( classOfFailedVisualization ) ;
58+ indexedVisualizationContainer . textContent = message ;
59+ } else {
60+ indexedVisualizationContainer . remove ( ) ; // remove an empty canvas
5661 }
57- indexedVisualizationContainer . remove ( ) ; // remove an empty canvas
5862 markVisualizationAsFinished ( indexedVisualizationContainer , 'No query results (anymore)' ) ;
5963 } else {
6064 setTimeout ( ( ) => {
You can’t perform that action at this time.
0 commit comments