fixing logbook non authenticated

This commit is contained in:
2025-02-24 19:53:18 -06:00
parent 80cfa52413
commit 80f0e5437c
3 changed files with 10 additions and 11 deletions

View File

@@ -122,7 +122,7 @@ const LogForm: React.FC<ILogFormProps> = ({
config
);
const entry = response.data;
console.log(entry)
methods.reset(entry);
} catch (error) {
const axiosError = error as AxiosError;
@@ -139,7 +139,7 @@ const LogForm: React.FC<ILogFormProps> = ({
}, [entryId]);
useEffect(() => {
if (pilots) {
if (pilots && FormMode.ADD) {
const newPilotsOptions = pilots.map((pilot) => {
return {
label: pilot.name,