Skip to content

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

chore: update should pull checks (#13686)

boojack59007c600fc7
diff --git a/frontend/src/components/IssueV1/logic/poll.ts b/frontend/src/components/IssueV1/logic/poll.ts
index 92610068a3..b08073cc71 100644
--- a/frontend/src/components/IssueV1/logic/poll.ts
+++ b/frontend/src/components/IssueV1/logic/poll.ts
@@ -1,4 +1,4 @@
-import { computed, watch } from "vue";
+import { watch } from "vue";
import { databaseForTask } from "@/components/IssueV1/logic";
import { useProgressivePoll } from "@/composables/useProgressivePoll";
import { experimentalFetchIssueByUID, useChangeHistoryStore } from "@/store";
@@ -24,12 +24,8 @@ const clearChangeHistory = (issue: ComposedIssue) => {
export const usePollIssue = () => {
const { isCreating, ready, issue, events, activeTask } = useIssueContext();
- const shouldPollIssue = computed(() => {
- return !isCreating.value && ready.value;
- });
-
const refreshIssue = () => {
- if (!shouldPollIssue.value) return;
+ if (isCreating.value || !ready.value) return;
experimentalFetchIssueByUID(
extractIssueUID(issue.value.name),
extractProjectResourceName(issue.value.project)
@@ -55,9 +51,9 @@ export const usePollIssue = () => {
});
watch(
- shouldPollIssue,
+ () => [isCreating.value, ready.value],
() => {
- if (shouldPollIssue.value) {
+ if (!isCreating.value && ready.value) {
poller.start();
} else {
poller.stop();