Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/DataProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export default {
baseURL() {
return localStorage.getItem('baseURL');
},

// Methods below are used in the components

getTasks(params) {
const endpoint = _.get(window, 'PM4ConfigOverrides.getTasksEndpoint', '/tasks');
return this.get(endpoint + params).then(response => {
Expand Down Expand Up @@ -83,7 +83,8 @@ export default {
const cache = this.screensCache.find(screen => screen.id == id);
if (cache) {
resolve({data: cache});
} else {
}
if (!cache && id != undefined) {
const request = this.get(endpoint + `/${id}${query}`);
request.then(response => {
if (response.data.nested) {
Expand All @@ -94,7 +95,7 @@ export default {
}
});
},

postScript(id, params) {
let endpoint = _.get(
window,
Expand Down