Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: wrong issue entity cache (#3975)

Liu Jiff317fb84a66
diff --git a/frontend/src/store/modules/issue.ts b/frontend/src/store/modules/issue.ts
index e0c474efbd..2971c6b3a2 100644
--- a/frontend/src/store/modules/issue.ts
+++ b/frontend/src/store/modules/issue.ts
@@ -150,9 +150,9 @@ export const useIssueStore = defineStore("issue", {
getIssueFromIncludedList
);
- issueList.forEach((issue) =>
- this.setIssueById({ issueId: issue.id, issue })
- );
+ // The issue list API returns incomplete issue entities (without
+ // task.instance and task.database compositions)
+ // So we shouldn't store the incomplete cache items in issueById set here.
const nextToken = isPagedResponse(responseData, "issues")
? responseData.data.attributes.nextToken