Feature/62 limit pilot data for non auth users #69
@@ -205,7 +205,6 @@ const LogForm: React.FC<ILogFormProps> = ({
|
||||
name="pilotId"
|
||||
control={methods.control}
|
||||
render={({ field: { onChange, value } }) => {
|
||||
console.log(value)
|
||||
return (
|
||||
<Select
|
||||
disabled={state.isDisabled}
|
||||
|
||||
@@ -177,6 +177,20 @@ const Logbook: React.FC<unknown> = () => {
|
||||
accessorKey: 'notes',
|
||||
header: 'Notes'
|
||||
},
|
||||
{
|
||||
header: 'Actions',
|
||||
meta: {
|
||||
align: 'center',
|
||||
headerAlign: 'center'
|
||||
},
|
||||
cell: (info: any) => (
|
||||
<ActionMenu
|
||||
id={info.row.original.rowKey}
|
||||
onDelete={onDeleteEntry}
|
||||
onOpenCloseForm={onOpenCloseEntryForm}
|
||||
/>
|
||||
)
|
||||
}
|
||||
]
|
||||
|
||||
const authColumns: ColumnDef<ILogbookEntry>[] = [
|
||||
|
||||
@@ -113,7 +113,6 @@ const PilotForm: React.FC<IPilotFormProps> = ({
|
||||
};
|
||||
|
||||
const onSubmit = async (data: unknown) => {
|
||||
console.log(data)
|
||||
try {
|
||||
setIsLoading(true);
|
||||
|
||||
@@ -167,7 +166,7 @@ const PilotForm: React.FC<IPilotFormProps> = ({
|
||||
|
||||
pilot.certificates = JSON.parse(pilot.certificates);
|
||||
pilot.endorsements = JSON.parse(pilot.endorsements)
|
||||
console.log(pilot)
|
||||
|
||||
setSelectedPerson({
|
||||
userPrincipalName: pilot.id,
|
||||
displayName: pilot.name
|
||||
|
||||
Reference in New Issue
Block a user