Restore circuit drag placement
This commit is contained in:
parent
7c8d4a7ddf
commit
2d97fafce9
6 changed files with 194 additions and 25 deletions
|
|
@ -144,8 +144,15 @@ const circuitSectionLabels: Record<string, string> = {
|
|||
};
|
||||
|
||||
export function getCircuitSectionLabel(
|
||||
section: { key: string; displayName: string }
|
||||
section: {
|
||||
key: string;
|
||||
displayName: string;
|
||||
category?: string;
|
||||
}
|
||||
): string {
|
||||
if (section.category) {
|
||||
return section.displayName;
|
||||
}
|
||||
return circuitSectionLabels[section.key] ?? section.displayName;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue