chore: images style
This commit is contained in:
@@ -279,9 +279,9 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
|
||||
</Form.Item>
|
||||
<Form.Item name="backend_version">
|
||||
<SealInput.Input
|
||||
label={intl.formatMessage({ id: 'model.form.backendVersion' })}
|
||||
label={intl.formatMessage({ id: 'models.form.backendVersion' })}
|
||||
description={intl.formatMessage({
|
||||
id: 'model.form.backendVersion.tips'
|
||||
id: 'models.form.backendVersion.tips'
|
||||
})}
|
||||
></SealInput.Input>
|
||||
</Form.Item>
|
||||
|
||||
@@ -34,7 +34,7 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
|
||||
}, [onCancel]);
|
||||
|
||||
const updateHandler = (list: any) => {
|
||||
const data = list?.find((item: any) => item.data.id === props.id);
|
||||
const data = list?.find((item: any) => item.data?.id === props.id);
|
||||
if (data) {
|
||||
setEnableScorllLoad(!InstanceRealLogStatus.includes(data?.data?.state));
|
||||
}
|
||||
@@ -45,7 +45,7 @@ const ViewCodeModal: React.FC<ViewModalProps> = (props) => {
|
||||
if (open) {
|
||||
requestRef.current?.current?.cancel?.();
|
||||
requestRef.current = setChunkRequest({
|
||||
url: `${MODELS_API}/${props.id}/instances`,
|
||||
url: `${MODELS_API}/${props.modelId}/instances`,
|
||||
handler: updateHandler
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user