fix hydration issues in favorites (#5068)

This commit is contained in:
Kevin Papst
2024-09-20 22:43:16 +02:00
committed by GitHub
parent 537c120ad9
commit 036b297a76
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ final class FavoriteController extends AbstractController
{
$favoriteRecordService->addFavorite($timesheet);
return $this->render('favorite/index.html.twig');
return $this->redirectToRoute('favorites_timesheets');
}
#[Route(path: '/timesheet/remove/{id}', name: 'favorites_timesheets_remove', methods: ['GET'])]
@@ -41,6 +41,6 @@ final class FavoriteController extends AbstractController
{
$favoriteRecordService->removeFavorite($timesheet);
return $this->render('favorite/index.html.twig');
return $this->redirectToRoute('favorites_timesheets');
}
}