fix: allow deleting version for community backend

This commit is contained in:
jialin
2026-02-24 17:23:42 +08:00
parent 7dfeb859e2
commit 0aeefb1217
+2 -1
View File
@@ -201,6 +201,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
};
const isBuiltin = backendSource === BackendSourceValueMap.BUILTIN;
const isCommunity = backendSource === BackendSourceValueMap.COMMUNITY;
return (
<>
@@ -305,7 +306,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
></Form.Item>
)}
</span>
{(fields.length > 1 || isBuiltin) && (
{(fields.length > 1 || isBuiltin || isCommunity) && (
<Button
size="small"
shape="circle"