fix: peekoverview (#2603)

* fix: peekoverview mutation fix

* fix: peekoverview mutation fix

* fix: sub-issue peekoverview
This commit is contained in:
Anmol Singh Bhatia 2023-11-02 16:02:34 +05:30 committed by GitHub
parent 4512651f8b
commit 0072160891
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 301 additions and 239 deletions

View file

@ -265,9 +265,10 @@ export class IssueStore implements IIssueStore {
...i,
...(i.id === issue.id
? {
...issue,
sort_order: payload.sort_order?.newSortOrder ?? i.sort_order,
start_date: payload.start_date,
target_date: payload.target_date,
start_date: payload.start_date ?? i.start_date,
target_date: payload.target_date ?? i.target_date,
}
: {}),
}));
@ -288,7 +289,7 @@ export class IssueStore implements IIssueStore {
};
});
const newPayload: any = { ...payload };
const newPayload: any = { ...issue, ...payload };
if (newPayload.sort_order && payload.sort_order) newPayload.sort_order = payload.sort_order.newSortOrder;