Skip to content

Commit

Permalink
re-enable polling
Browse files Browse the repository at this point in the history
  • Loading branch information
rouk1 committed Oct 2, 2024
1 parent d5dfed2 commit ae049db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/stores/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ref, shallowRef } from "vue";

import { type Layout, type Project, type ProjectItem } from "@/models";
import { deleteView as deleteViewApi, fetchProject, putView } from "@/services/api";
import { poll } from "@/services/utils";

export interface TreeNode {
name: string;
Expand Down Expand Up @@ -76,7 +77,7 @@ export const useProjectStore = defineStore("project", () => {
async function startBackendPolling() {
_isCanceledCall = false;
await fetch();
_stopBackendPolling = () => {}; //await poll(fetch, 1500);
_stopBackendPolling = await poll(fetch, 1500);
}

/**
Expand Down

0 comments on commit ae049db

Please sign in to comment.