Skip to content

Commit 9727cff

Browse files
committed
fix base url error
1 parent 5d59e2e commit 9727cff

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/view-pending/page.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ export default function PendingComponentsPage() {
3636
const [isAuthenticated, setIsAuthenticated] = useState(false)
3737
const [isProcessing, setIsProcessing] = useState(false)
3838

39-
const baseUrl = process.env.NEXT_PUBLIC_API_URL;
40-
39+
4140
// Store pending components in Redis
4241

4342
const storePendingComponents = async (components: PendingComponent[]) => {
@@ -132,7 +131,7 @@ export default function PendingComponentsPage() {
132131
}
133132

134133
await axios.patch(
135-
`${baseUrl}/api/dashboard`,
134+
`/api/dashboard`,
136135
{ id, status },
137136
{ params: { email: adminEmail, password: adminPassword } }
138137
)

0 commit comments

Comments
 (0)