diff --git a/.env.example b/.env.example index fa029164..19e6f0e1 100644 --- a/.env.example +++ b/.env.example @@ -41,6 +41,7 @@ FRONTEND_TARGET_OVERRIDE=${FRONTEND_TARGET_OVERRIDE:-development} SITE_NAME=${SITE_NAME:-"DTM-Drone Tasking Manager"} BASE_URL=${BASE_URL:-http://localhost:8000/api} API_URL_V1=${API_URL_V1:-http://localhost:8000/api} +NODE_ODM_URL=${NODE_ODM_URL:-http://odm-api:3000} ### ODM ### diff --git a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx index 8b52ea29..e589125b 100644 --- a/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx +++ b/src/frontend/src/components/DroneOperatorTask/DescriptionSection/DescriptionBox/index.tsx @@ -1,6 +1,5 @@ import { useState } from 'react'; import { useParams } from 'react-router-dom'; -import { format } from 'date-fns'; import { toast } from 'react-toastify'; import { useGetIndividualTaskQuery, @@ -42,7 +41,7 @@ const DescriptionBox = () => { { name: 'Created date', value: taskData?.created_at - ? format(new Date(taskData?.created_at), 'yyyy-mm-dd') + ? taskData?.created_at?.slice(0, 10) || '-' : null, }, { diff --git a/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx b/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx index 9d12e1ab..b4d56903 100644 --- a/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx +++ b/src/frontend/src/components/DroneOperatorTask/MapSection/index.tsx @@ -269,8 +269,8 @@ const MapSection = ({ className }: { className?: string }) => { isLoading={isUpdatingTakeOffPoint} > {newTakeOffPoint - ? 'Save Starting Point' - : 'Change Starting Point'} + ? 'Save Take off Point' + : 'Change Take off Point'}