fix: allow deleting version for community backend
This commit is contained in:
@@ -201,6 +201,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const isBuiltin = backendSource === BackendSourceValueMap.BUILTIN;
|
const isBuiltin = backendSource === BackendSourceValueMap.BUILTIN;
|
||||||
|
const isCommunity = backendSource === BackendSourceValueMap.COMMUNITY;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -305,7 +306,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
|
|||||||
></Form.Item>
|
></Form.Item>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
{(fields.length > 1 || isBuiltin) && (
|
{(fields.length > 1 || isBuiltin || isCommunity) && (
|
||||||
<Button
|
<Button
|
||||||
size="small"
|
size="small"
|
||||||
shape="circle"
|
shape="circle"
|
||||||
|
|||||||
Reference in New Issue
Block a user