fix: entrypoint do not display in edit
This commit is contained in:
@@ -112,6 +112,16 @@ export const VersionItem: React.FC<VersionItemProps> = ({ data }) => {
|
||||
</AutoTooltip>
|
||||
</InfoItem>
|
||||
)}
|
||||
{data.entrypoint && (
|
||||
<InfoItem>
|
||||
<span className="label">
|
||||
{intl.formatMessage({ id: 'backend.replaceEntrypoint' })}:
|
||||
</span>
|
||||
<AutoTooltip ghost minWidth={20}>
|
||||
{data.entrypoint}
|
||||
</AutoTooltip>
|
||||
</InfoItem>
|
||||
)}
|
||||
{data.run_command && (
|
||||
<InfoItem>
|
||||
<span className="label">
|
||||
|
||||
@@ -73,6 +73,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
|
||||
version_no: '',
|
||||
image_name: '',
|
||||
run_command: '',
|
||||
entrypoint: '',
|
||||
isBuiltin: false,
|
||||
is_default: false
|
||||
}
|
||||
@@ -99,6 +100,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
|
||||
version_no: '',
|
||||
image_name: '',
|
||||
run_command: '',
|
||||
entrypoint: '',
|
||||
isBuiltin: false,
|
||||
is_default: false
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user