This commit is contained in:
@@ -173,6 +173,7 @@ export default {
|
||||
return;
|
||||
} else {
|
||||
//log unhandled api error
|
||||
|
||||
window.$gz.store.commit(
|
||||
"logItem",
|
||||
"API error: status=" +
|
||||
@@ -696,8 +697,11 @@ export default {
|
||||
|
||||
let res = await window.$gz.api.upsert("report/render", reportDataOptions);
|
||||
if (res.error) {
|
||||
throw new Error(window.$gz.errorHandler.errorToString(res));
|
||||
//throw new Error(res.error);
|
||||
if (redirectNotPopup) {
|
||||
return res;
|
||||
} else {
|
||||
throw new Error(window.$gz.errorHandler.errorToString(res));
|
||||
}
|
||||
} else {
|
||||
let reportUrl = window.$gz.api.reportDownloadUrl(res.data);
|
||||
if (redirectNotPopup) {
|
||||
|
||||
Reference in New Issue
Block a user