mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
misc: removed unnecessary notification
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user