Move debug mode so edges are formatted
parent
4d312271ff
commit
0116980171
|
@ -672,9 +672,6 @@ export default class GraphContainer extends Component {
|
|||
|
||||
doQueryNative(params) {
|
||||
this.clearScale();
|
||||
if (appStore.performance.debug) {
|
||||
emitter.emit("setRawQuery", params.statement);
|
||||
}
|
||||
let nodes = {};
|
||||
let edges = {};
|
||||
let session = driver.session();
|
||||
|
@ -705,7 +702,11 @@ export default class GraphContainer extends Component {
|
|||
}
|
||||
|
||||
let finaledges = edgearr.join('|');
|
||||
let statement = params.statement.format(finaledges)
|
||||
let statement = params.statement.format(finaledges);
|
||||
|
||||
if (appStore.performance.debug) {
|
||||
emitter.emit("setRawQuery", statement);
|
||||
}
|
||||
let promises = [];
|
||||
session.run(statement, params.props).subscribe({
|
||||
onNext: async function(result) {
|
||||
|
|
|
@ -30,6 +30,10 @@ export default class About extends Component {
|
|||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
emitter.on("showAbout", this.openModal.bind(this));
|
||||
}
|
||||
|
||||
closeModal() {
|
||||
this.setState({ open: false });
|
||||
}
|
||||
|
@ -38,10 +42,6 @@ export default class About extends Component {
|
|||
this.setState({ open: true });
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
emitter.on("showAbout", this.openModal.bind(this));
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Modal
|
||||
|
|
Loading…
Reference in New Issue