fix: edit community backend

This commit is contained in:
jialin
2026-02-03 15:41:16 +08:00
parent 32f95f5d7d
commit cf3b225d3e
7 changed files with 72 additions and 32 deletions
+2 -2
View File
@@ -67,7 +67,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
const defaultCollapseKey =
action === 'edit' ? new Set<number>() : new Set([0]);
const form = Form.useFormInstance();
const { backendSource } = useFormContext();
const { backendSource, showCustomSuffix } = useFormContext();
const version_configs = Form.useWatch('version_configs', form);
const [collapseKey, setCollapseKey] =
React.useState<Set<number | string>>(defaultCollapseKey);
@@ -329,7 +329,7 @@ const VersionsForm: React.FC<AddModalProps> = ({
>
<SealInput.Input
trim
addAfter={isBuiltin ? '-custom' : null}
addAfter={showCustomSuffix ? '-custom' : null}
onChange={handleVersionChange}
label={intl.formatMessage({ id: 'backend.version' })}
required