diff options
author | Suchita Lad | 2025-06-04 11:46:01 +0530 |
---|---|---|
committer | Suchita Lad | 2025-06-04 11:46:01 +0530 |
commit | e256ee5b3f33b4dfe86bf5971942105a5f408e53 (patch) | |
tree | 127544e6e773067d291bf83b89d8e3558b253c19 | |
parent | 5cea880349a3a680f7a68a42fc34b37530cff726 (diff) | |
download | Common-Interface-Project-e256ee5b3f33b4dfe86bf5971942105a5f408e53.tar.gz Common-Interface-Project-e256ee5b3f33b4dfe86bf5971942105a5f408e53.tar.bz2 Common-Interface-Project-e256ee5b3f33b4dfe86bf5971942105a5f408e53.zip |
Updated logic to get super_f block
-rw-r--r-- | blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js index 21aeef85..af28255b 100644 --- a/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js +++ b/blocks/eda-frontend/src/components/SchematicEditor/Helper/ComponentDrag.js @@ -143,7 +143,7 @@ export default function loadGrid (container, sidebar, outline, setMainDiagramBac const cell = evt.getProperty('cell') if (cell !== undefined && cell.CellType === 'Component') { - const blockType = cell.style?.split(';')[0] // Extract block type like 'SUPER_f' + const blockType = styleToObject(cell.style).default // Extract block type like 'SUPER_f' if (blockType === 'SUPER_f') { // Save current diagram |