Fix: Switching templates results in a few extra data entries in the entity specification. (#17514)

This commit is contained in:
balibabu
2026-07-29 16:25:46 +08:00
committed by GitHub
parent 803f44221f
commit e5a7bee9db
2 changed files with 4 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ export function TemplateConfiguration({
return (
sectionName === activeSectionTab && (
<SectionFieldGrid
key={activeFieldsPath}
key={`${activeFieldsPath}-${kind}`}
fieldsPath={activeFieldsPath}
sectionName={sectionName}
onOpenAddField={handleOpenAddField}
@@ -125,6 +125,7 @@ export function TemplateConfiguration({
[
activeFieldsPath,
activeSectionTab,
kind,
handleOpenAddField,
handleOpenEditField,
],

View File

@@ -106,7 +106,7 @@ export function TemplateConfiguration({
return (
sectionName === activeSectionTab && (
<SectionFieldGrid
key={activeFieldsPath}
key={`${activeFieldsPath}-${kind}`}
fieldsPath={activeFieldsPath}
sectionName={sectionName}
onOpenAddField={handleOpenAddField}
@@ -118,6 +118,7 @@ export function TemplateConfiguration({
[
activeFieldsPath,
activeSectionTab,
kind,
handleOpenAddField,
handleOpenEditField,
],