diff --git a/apps/renderer/src/modules/settings/tabs/actions/index.tsx b/apps/renderer/src/modules/settings/tabs/actions/index.tsx index 2dfc2f500..94050f35b 100644 --- a/apps/renderer/src/modules/settings/tabs/actions/index.tsx +++ b/apps/renderer/src/modules/settings/tabs/actions/index.tsx @@ -9,6 +9,7 @@ import { toast } from "sonner" import { useAuthQuery } from "~/hooks/common" import { apiClient } from "~/lib/api-fetch" import { toastFetchError } from "~/lib/error-parser" +import { queryClient } from "~/lib/query-client" import { ActionCard } from "~/modules/settings/action-card" import { Queries } from "~/queries" @@ -57,6 +58,9 @@ export const ActionSetting = () => { }, onSuccess: () => { Queries.action.getAll().invalidate() + queryClient.invalidateQueries({ + queryKey: ["entries"], + }) toast(t("actions.saveSuccess")) }, onError: (error) => { diff --git a/apps/renderer/src/store/entry/store.ts b/apps/renderer/src/store/entry/store.ts index 4ca0eac63..855cf7be6 100644 --- a/apps/renderer/src/store/entry/store.ts +++ b/apps/renderer/src/store/entry/store.ts @@ -256,6 +256,9 @@ class EntryActions { state.flatMapEntries[item.entries.id]?.entries || {}, item.entries, ) + if (item.settings) { + draft.flatMapEntries[item.entries.id].settings = item.settings + } // Is related to feed if (item.feeds) {