mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-22 23:14:33 +08:00
fix(semanticModel): model options not exist when creating new dataset (#1919)
This commit is contained in:
@@ -15,9 +15,10 @@ import ViewSearchFormModal from './ViewSearchFormModal';
|
||||
type Props = {
|
||||
dataSetList: ISemantic.IDatasetItem[];
|
||||
disabledEdit?: boolean;
|
||||
isCurrent: boolean;
|
||||
};
|
||||
|
||||
const DataSetTable: React.FC<Props> = ({ dataSetList, disabledEdit = false }) => {
|
||||
const DataSetTable: React.FC<Props> = ({ dataSetList, disabledEdit = false, isCurrent }) => {
|
||||
const domainModel = useModel('SemanticModel.domainData');
|
||||
const { selectDomainId } = domainModel;
|
||||
|
||||
@@ -51,8 +52,8 @@ const DataSetTable: React.FC<Props> = ({ dataSetList, disabledEdit = false }) =>
|
||||
|
||||
useEffect(() => {
|
||||
// queryDataSetList();
|
||||
queryDomainAllModel();
|
||||
}, [selectDomainId]);
|
||||
if (isCurrent) queryDomainAllModel();
|
||||
}, [selectDomainId, isCurrent]);
|
||||
|
||||
const queryDataSetList = async () => {
|
||||
setLoading(true);
|
||||
|
||||
Reference in New Issue
Block a user