Skip to content

Commit

Permalink
doc type editing
Browse files Browse the repository at this point in the history
  • Loading branch information
mgtennant committed Mar 27, 2024
1 parent 3c67600 commit 2eb34b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { FC, useEffect, useState } from 'react';
import { DataTable } from '../common/DataTable';
import { DocType } from '../../../types/types';

import { Column, ColumnDef, Row, createColumnHelper } from '@tanstack/react-table';
import { ColumnDef, Row, createColumnHelper } from '@tanstack/react-table';

interface EditDocTypeTableProps {
documentType: DocType[];
Expand Down Expand Up @@ -69,7 +69,7 @@ const EditDocTypeTable: FC<EditDocTypeTableProps> = ({ documentType, onUpdate })
}),
];

return <DataTable columns={columns} data={documentType} />;
return <DataTable columns={columns} data={[updatedDocType]} />;
};

export default EditDocTypeTable;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/content/pages/ManageDocumentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const ManageDocumentsPage: FC = () => {
updatedDocType.created_by,
updatedDocType.created_date
);
// refreshDocTypes();
refreshDocTypes();
} catch (err) {
console.log('Error saving doc type');
console.log(err);
Expand Down

0 comments on commit 2eb34b0

Please sign in to comment.