File tree Expand file tree Collapse file tree
apps/dokploy/components/dashboard/compose/general Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ export const IsolatedDeployment = ({ composeId }: Props) => {
7171 isolatedDeployment : formData ?. isolatedDeployment || false ,
7272 } )
7373 . then ( async ( _data ) => {
74- randomizeCompose ( ) ;
75- refetch ( ) ;
74+ await randomizeCompose ( ) ;
75+ await refetch ( ) ;
7676 toast . success ( "Compose updated" ) ;
7777 } )
7878 . catch ( ( ) => {
@@ -84,15 +84,10 @@ export const IsolatedDeployment = ({ composeId }: Props) => {
8484 await mutateAsync ( {
8585 composeId,
8686 suffix : data ?. appName || "" ,
87- } )
88- . then ( async ( data ) => {
89- await utils . project . all . invalidate ( ) ;
90- setCompose ( data ) ;
91- toast . success ( "Compose Isolated" ) ;
92- } )
93- . catch ( ( ) => {
94- toast . error ( "Error isolating the compose" ) ;
95- } ) ;
87+ } ) . then ( async ( data ) => {
88+ await utils . project . all . invalidate ( ) ;
89+ setCompose ( data ) ;
90+ } ) ;
9691 } ;
9792
9893 return (
Original file line number Diff line number Diff line change @@ -90,15 +90,10 @@ export const RandomizeCompose = ({ composeId }: Props) => {
9090 await mutateAsync ( {
9191 composeId,
9292 suffix,
93- } )
94- . then ( async ( data ) => {
95- await utils . project . all . invalidate ( ) ;
96- setCompose ( data ) ;
97- toast . success ( "Compose randomized" ) ;
98- } )
99- . catch ( ( ) => {
100- toast . error ( "Error randomizing the compose" ) ;
101- } ) ;
93+ } ) . then ( async ( data ) => {
94+ await utils . project . all . invalidate ( ) ;
95+ setCompose ( data ) ;
96+ } ) ;
10297 } ;
10398
10499 return (
You can’t perform that action at this time.
0 commit comments