misc: removed unnecessary notification

This commit is contained in:
Sheen Capadngan
2024-05-21 14:01:15 +08:00
parent 629bd9b7c6
commit d6dae04959

View File

@@ -1,7 +1,6 @@
import { MutableRefObject } from "react";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { createNotification } from "@app/components/notifications";
import { apiRequest } from "@app/config/request";
import { workspaceKeys } from "../workspace/queries";
@@ -127,10 +126,6 @@ export const useSyncIntegration = (pollingRef: MutableRefObject<NodeJS.Timeout |
const integration = integrations?.find((entry) => entry.id === id);
if (!integration || integration.lastUsed !== lastUsed) {
createNotification({
text: "Integration successfully synced",
type: "success"
});
clearInterval(pollingRef.current as NodeJS.Timeout);
// eslint-disable-next-line no-param-reassign
pollingRef.current = null;