Skip to content

Commit

Permalink
invalidate cache on delete
Browse files Browse the repository at this point in the history
  • Loading branch information
fiskus committed Aug 15, 2024
1 parent a6b9f46 commit 4e71eb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion catalog/app/utils/GraphQL/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ export default function GraphQLProvider({ children }: React.PropsWithChildren<{}
R.evolve({ admin: { user: { list: rmUser } } }),
)
}
if (result.admin?.setSsoConfig?.__typename === 'SsoConfig') {
if (
result.admin?.setSsoConfig?.__typename === 'SsoConfig' ||
result.admin?.setSsoConfig === null
) {
cache.invalidate({ __typename: 'Query' }, 'admin')
cache.invalidate({ __typename: 'Query' }, 'roles')
}
Expand Down

0 comments on commit 4e71eb9

Please sign in to comment.