소스 검색

fix: metadata not saved (#1429)

crazywoola 1 년 전
부모
커밋
518083dfe0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/app/components/datasets/documents/detail/index.tsx

+ 1 - 1
web/app/components/datasets/documents/detail/index.tsx

@@ -175,7 +175,7 @@ const DocumentDetail: FC<Props> = ({ datasetId, documentId }) => {
             </div>
           }
           {showMetadata && <Metadata
-            docDetail={{ ...documentDetail, ...documentMetadata, doc_type: documentDetail?.doc_type === 'others' ? '' : documentDetail?.doc_type } as any}
+            docDetail={{ ...documentDetail, ...documentMetadata, doc_type: documentMetadata?.doc_type === 'others' ? '' : documentMetadata?.doc_type } as any}
             loading={isMetadataLoading}
             onUpdate={metadataMutate}
           />}