Skip to content

Commit

Permalink
use redirectUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Oct 29, 2024
1 parent 7c23f75 commit 102ce11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/adminJs/tabs/projectsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export const verifyProjects = async (
refreshProjectFuturePowerView(),
]);
return {
redirectUrl: '/admin/resources/Project',
redirectUrl: redirectUrl,
records: records.map(record => record.toJSON(context.currentAdmin)),
notice: {
message: `Project(s) successfully ${
Expand All @@ -258,7 +258,7 @@ export const verifyProjects = async (
} catch (error) {
logger.error('verifyProjects() error', error);
return {
redirectUrl: '/admin/resources/Project',
redirectUrl: redirectUrl,
records: records.map(record => record.toJSON(context.currentAdmin)),
notice: {
message: error.message,
Expand Down

0 comments on commit 102ce11

Please sign in to comment.