Skip to content

Commit

Permalink
fix edge case when users created a corpus called corpus /o\
Browse files Browse the repository at this point in the history
  • Loading branch information
boogheta committed Dec 14, 2023
1 parent 3352b58 commit 907b85e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyphe_frontend/app/js/service_hyphe_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ angular.module('hyphe.service_hyphe_api', [])
window.location.reload();
}
if(target !== undefined){
if(target && target.corpus && target.corpus.corpus_id && target.corpus.status != "ready" && $location.path()!=='/admin') {
if(target && target.corpus && target.corpus.corpus_id && target.corpus.status != "ready" && $location.path()!=='/admin' && pseudo_route !== API.CORPUS_LIST_GET) {
if (pseudo_route !== API.CORPUS_START) {
ns.startCorpus({
id: corpus.getId(),
Expand All @@ -839,7 +839,7 @@ angular.module('hyphe.service_hyphe_api', [])
successCallback(target, response.data[0])
}
} else {
if(response.data[0] && response.data[0].message && response.data[0].message.status && response.data[0].message.status != "ready" && $location.path()!=='/admin') {
if(response.data[0] && response.data[0].message && response.data[0].message.status && response.data[0].message.status != "ready" && $location.path()!=='/admin' && pseudo_route !== API.CORPUS_LIST_GET) {
if (pseudo_route !== API.CORPUS_START) {
ns.startCorpus({
id: corpus.getId(),
Expand Down

0 comments on commit 907b85e

Please sign in to comment.