Skip to content

Commit

Permalink
Log the query to console when submitting semSearch (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed May 31, 2021
1 parent 571c746 commit 59e8ac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/semantic-search/semantic-search-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { CompositeView } from '../core/view';
import Multifield from '../forms/multifield-view';

import semChannel from './radio';
import modelToQuery from './modelToQuery';
import Chain from './chain-view';
import Multibranch from './multibranch-view';
import semTemplate from './semantic-search-template';
Expand Down Expand Up @@ -38,7 +39,7 @@ export default class SemanticSearchView extends CompositeView {

onSubmit(event): void {
event.preventDefault();
console.debug(JSON.stringify(this.model, null, 4));
console.debug(modelToQuery(this.model));
}
}

Expand Down

0 comments on commit 59e8ac4

Please sign in to comment.