mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 22:28:15 +00:00
misc: removed unnecessary notification
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import { MutableRefObject } from "react";
|
import { MutableRefObject } from "react";
|
||||||
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
||||||
|
|
||||||
import { createNotification } from "@app/components/notifications";
|
|
||||||
import { apiRequest } from "@app/config/request";
|
import { apiRequest } from "@app/config/request";
|
||||||
|
|
||||||
import { workspaceKeys } from "../workspace/queries";
|
import { workspaceKeys } from "../workspace/queries";
|
||||||
@@ -127,10 +126,6 @@ export const useSyncIntegration = (pollingRef: MutableRefObject<NodeJS.Timeout |
|
|||||||
|
|
||||||
const integration = integrations?.find((entry) => entry.id === id);
|
const integration = integrations?.find((entry) => entry.id === id);
|
||||||
if (!integration || integration.lastUsed !== lastUsed) {
|
if (!integration || integration.lastUsed !== lastUsed) {
|
||||||
createNotification({
|
|
||||||
text: "Integration successfully synced",
|
|
||||||
type: "success"
|
|
||||||
});
|
|
||||||
clearInterval(pollingRef.current as NodeJS.Timeout);
|
clearInterval(pollingRef.current as NodeJS.Timeout);
|
||||||
// eslint-disable-next-line no-param-reassign
|
// eslint-disable-next-line no-param-reassign
|
||||||
pollingRef.current = null;
|
pollingRef.current = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user