Skip to content

Commit

Permalink
fix: corrige problème de cache sur l'attribution lors de la modificat…
Browse files Browse the repository at this point in the history
…ion d'une publication #443
  • Loading branch information
ocruze committed Jun 27, 2024
1 parent 2eb1b04 commit 1aa2c56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const PyramidVectorTmsServiceForm: FC<PyramidVectorTmsServiceFormProps> = ({ dat
},
onSuccess() {
if (offeringId !== undefined) {
queryClient.invalidateQueries({
queryClient.removeQueries({
queryKey: RQKeys.datastore_offering(datastoreId, offeringId),
});
}
Expand Down
2 changes: 1 addition & 1 deletion assets/entrepot/pages/service/wfs/WfsServiceForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const WfsServiceForm: FC<WfsServiceFormProps> = ({ datastoreId, vectorDbId, offe
},
onSuccess() {
if (offeringId !== undefined) {
queryClient.invalidateQueries({
queryClient.removeQueries({
queryKey: RQKeys.datastore_offering(datastoreId, offeringId),
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const WmsVectorServiceForm: FC<WmsVectorServiceFormProps> = ({ datastoreId, vect
},
onSuccess() {
if (offeringId !== undefined) {
queryClient.invalidateQueries({
queryClient.removeQueries({
queryKey: RQKeys.datastore_offering(datastoreId, offeringId),
});
}
Expand Down

0 comments on commit 1aa2c56

Please sign in to comment.