diff --git a/frontend/.env.development b/frontend/.env.development index 9569966a..7a87f762 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -1,3 +1,3 @@ # Please put appropriate value -VITE_API_HOST=http://127.0.0.1:7091 +VITE_API_HOST=http://0.0.0.0:7091 VITE_API_STREAMING=true \ No newline at end of file diff --git a/frontend/src/settings/Documents.tsx b/frontend/src/settings/Documents.tsx index e9d9c1c9..18ae687c 100644 --- a/frontend/src/settings/Documents.tsx +++ b/frontend/src/settings/Documents.tsx @@ -1,6 +1,6 @@ import { DocumentsProps } from '../models/misc'; import Trash from '../assets/trash.svg'; - +import PropTypes from 'prop-types'; const Documents: React.FC = ({ documents, handleDeleteDocument, @@ -56,5 +56,8 @@ const Documents: React.FC = ({ ); }; - +Documents.propTypes = { + documents: PropTypes.array.isRequired, + handleDeleteDocument: PropTypes.func.isRequired, +}; export default Documents;