Skip to content

Commit

Permalink
fix(contexts): fix contexts breaking on array query
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmacdonald committed Apr 17, 2024
1 parent bf36e6a commit eb4dff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/app/panel/Contexts.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ Ext.define('Voyant.panel.Contexts', {
this.mask(this.localize('limitedAccess'), 'mask-no-spinner');
}
else {
var query = this.getApiParam("query");
if (query !== undefined && query.match(/^[\^@]/) !== null) {
var query = Ext.Array.from(this.getApiParam("query"));
if (query.length > 0 && query[0].match(/^[\^@]/) !== null) {
// query is a category so just load
this.getStore().clearAndLoad({params: this.getApiParams()});
} else {
Expand Down

0 comments on commit eb4dff2

Please sign in to comment.