diff --git a/plugins/tracker-resources/src/components/CreateIssue.svelte b/plugins/tracker-resources/src/components/CreateIssue.svelte
index 5437d93d94..cb903774e6 100644
--- a/plugins/tracker-resources/src/components/CreateIssue.svelte
+++ b/plugins/tracker-resources/src/components/CreateIssue.svelte
@@ -154,7 +154,7 @@
action: async () =>
showPopup(
SetDueDateActionPopup,
- { value: object, shouldSaveOnChange: false },
+ { value: object },
'top',
undefined,
(newDueDate) => newDueDate !== undefined && (object.dueDate = newDueDate)
@@ -167,7 +167,7 @@
action: async () =>
showPopup(
SetParentIssueActionPopup,
- { value: { ...object, space, attachedTo: parentIssue?._id }, shouldSaveOnChange: false },
+ { value: { ...object, space, attachedTo: parentIssue?._id } },
'top',
(selectedIssue) => selectedIssue !== undefined && (parentIssue = selectedIssue)
)
diff --git a/plugins/tracker-resources/src/components/SetDueDateActionPopup.svelte b/plugins/tracker-resources/src/components/SetDueDateActionPopup.svelte
index 798663b2b0..5d9f3f078a 100644
--- a/plugins/tracker-resources/src/components/SetDueDateActionPopup.svelte
+++ b/plugins/tracker-resources/src/components/SetDueDateActionPopup.svelte
@@ -13,15 +13,15 @@
// limitations under the License.
-->
(tracker.class.Issue, {}, { sort: { rank: SortingOrder.Descending } })
+ const lastOne = await client.findOne(
+ tracker.class.Issue,
+ { space },
+ { sort: { rank: SortingOrder.Descending } }
+ )
const incResult = await client.updateDoc(
tracker.class.Team,
core.space.Space,