| @@ -140,8 +140,6 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => { | |||
| router.push(`/datasets/${datasetId}/documents/create`) | |||
| } | |||
| router.prefetch(`/datasets/${datasetId}/documents/create`) | |||
| const isLoading = !documentsRes && !error | |||
| const handleSaveNotionPageSelected = async (selectedPages: (DataSourceNotionPage & { workspace_id: string })[]) => { | |||
| @@ -309,7 +309,7 @@ const DocumentList: FC<IDocumentListProps> = ({ documents = [], datasetId, onUpd | |||
| key={doc.id} | |||
| className={'border-b border-gray-200 h-8 hover:bg-gray-50 cursor-pointer'} | |||
| onClick={() => { | |||
| router.push(`datasets/${datasetId}/documents/${doc.id}`) | |||
| router.push(`/datasets/${datasetId}/documents/${doc.id}`) | |||
| }}> | |||
| <td className='text-left align-middle text-gray-500 text-xs'>{doc.position}</td> | |||
| <td className={s.tdValue}> | |||
| @@ -44,7 +44,6 @@ | |||
| "echarts-for-react": "^3.0.2", | |||
| "emoji-mart": "^5.5.2", | |||
| "eslint": "8.36.0", | |||
| "eslint-config-next": "13.2.4", | |||
| "husky": "^8.0.3", | |||
| "i18next": "^22.4.13", | |||
| "i18next-resources-to-backend": "^1.1.3", | |||
| @@ -53,10 +52,10 @@ | |||
| "katex": "^0.16.7", | |||
| "lodash-es": "^4.17.21", | |||
| "negotiator": "^0.6.3", | |||
| "next": "13.2.4", | |||
| "next": "^13.4.7", | |||
| "qs": "^6.11.1", | |||
| "react": "18.2.0", | |||
| "react-dom": "18.2.0", | |||
| "react": "^18.2.0", | |||
| "react-dom": "^18.2.0", | |||
| "react-error-boundary": "^4.0.2", | |||
| "react-headless-pagination": "^1.1.4", | |||
| "react-i18next": "^12.2.0", | |||
| @@ -89,6 +88,7 @@ | |||
| "@types/negotiator": "^0.6.1", | |||
| "@types/qs": "^6.9.7", | |||
| "@types/sortablejs": "^1.15.1", | |||
| "eslint-config-next": "^13.4.7", | |||
| "eslint-plugin-react-hooks": "^4.6.0", | |||
| "lint-staged": "^13.2.2", | |||
| "miragejs": "^0.1.47", | |||