Skip to content

Commit b4f1f8e

Browse files
committed
Add refetching of UseCaseData after successfully adding contributors, supporters, and partners to load logo
1 parent 3cd2cc5 commit b4f1f8e

File tree

1 file changed

+3
-0
lines changed
  • app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/contributors

1 file changed

+3
-0
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/contributors/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ const Details = () => {
102102
{
103103
onSuccess: (res: any) => {
104104
toast('Contributor added successfully');
105+
UseCaseData.refetch();
105106
},
106107
onError: (error: any) => {
107108
toast(`Error: ${error.message}`);
@@ -129,6 +130,7 @@ const Details = () => {
129130
{
130131
onSuccess: (res: any) => {
131132
toast('Supporter added successfully');
133+
UseCaseData.refetch();
132134
},
133135
onError: (error: any) => {
134136
toast(`Error: ${error.message}`);
@@ -156,6 +158,7 @@ const Details = () => {
156158
{
157159
onSuccess: (res: any) => {
158160
toast('Partner added successfully');
161+
UseCaseData.refetch();
159162
},
160163
onError: (error: any) => {
161164
toast(`Error: ${error.message}`);

0 commit comments

Comments
 (0)