diff --git a/deploy.toml b/deploy.toml index 6946502..7597268 100644 --- a/deploy.toml +++ b/deploy.toml @@ -16,7 +16,7 @@ [[production.servers]] host = "swppp.top" username = "devops" -privateKeyPath = "C:/Users/bburnworth/.ssh/id_ed25519" +privateKeyPath = "C:/Users/39P3QC2/.ssh/id_ed25519" sides = ["api","web"] packageManagerCommand = "yarn" monitorCommand = "pm2" diff --git a/web/src/components/InspectionsTable/columns.tsx b/web/src/components/InspectionsTable/columns.tsx index 15547a2..9338f62 100644 --- a/web/src/components/InspectionsTable/columns.tsx +++ b/web/src/components/InspectionsTable/columns.tsx @@ -3,7 +3,7 @@ import React from 'react' import { ColumnDef } from '@tanstack/react-table' import { MoreHorizontal } from 'lucide-react' -import { navigate, routes } from '@redwoodjs/router' +// import { navigate, routes } from '@redwoodjs/router' import { Button } from 'src/components/ui/Button' import { @@ -79,13 +79,13 @@ export const columns: ColumnDef[] = [ Copy inspection ID - navigate(routes.viewInspection({ id: inspection.id })) } > View inspection - + */} diff --git a/web/src/pages/NewInspectionPage/NewInspectionPage.tsx b/web/src/pages/NewInspectionPage/NewInspectionPage.tsx index 6e26e36..f365635 100644 --- a/web/src/pages/NewInspectionPage/NewInspectionPage.tsx +++ b/web/src/pages/NewInspectionPage/NewInspectionPage.tsx @@ -13,6 +13,7 @@ import { TimeField, DatetimeLocalField, } from '@redwoodjs/forms' +import { navigate } from '@redwoodjs/router' import { useMutation } from '@redwoodjs/web' import { useAuth } from 'src/auth' @@ -183,6 +184,7 @@ const NewInspectionPage = () => { }, }, }) + navigate('/dashboard') } catch (error) { console.error('Error in handleSubmit:', error.message) alert(