Fixed due to failing E2E tests

pull/4769/head
Roman Roelofsen 8 years ago
parent 3efd2ab6e2
commit 9c5d5f5df2
  1. 9
      frontend/app/components/work-packages/work-package-cache.service.ts

@ -59,13 +59,12 @@ export class WorkPackageCacheService {
updateWorkPackageList(list: WorkPackageResource[]) { updateWorkPackageList(list: WorkPackageResource[]) {
for (var wp of list) { for (var wp of list) {
const workPackageId = getWorkPackageId(wp.id); const workPackageId = getWorkPackageId(wp.id);
const wpState = this.states.workPackages.get(workPackageId); const wpState = this.states.workPackages.get(workPackageId);
if (wpState.hasValue() && wpState.getCurrentValue().dirty) { const wpForPublish = wpState.hasValue() && wpState.getCurrentValue().dirty
continue; ? wpState.getCurrentValue() // dirty, use current wp
} : wp; // not dirty or unknown, use new wp
this.states.workPackages.put(workPackageId, wp); this.states.workPackages.put(workPackageId, wpForPublish);
} }
} }

Loading…
Cancel
Save