diff --git a/frontend/src/explorer/explorer-event-controller.ts b/frontend/src/explorer/explorer-event-controller.ts index d51e9815..43d95ca9 100644 --- a/frontend/src/explorer/explorer-event-controller.ts +++ b/frontend/src/explorer/explorer-event-controller.ts @@ -89,9 +89,11 @@ class ExplorerEventController { } resetSemanticSearch(model: SemanticQuery): SearchResultListView { - const query = modelToQuery(model.get('query')); const items = new ItemGraph(); - items.sparqlQuery(query); + model.when( + 'query', + (model, query) => items.sparqlQuery(modelToQuery(query)) + ); if (model.isNew()) model.save(); const collection = new FlatItemCollection(items); const resultsView = new SearchResultListView({