summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuchita Lad2025-06-04 11:46:01 +0530
committerSuchita Lad2025-06-04 11:46:01 +0530
commite256ee5b3f33b4dfe86bf5971942105a5f408e53 (patch)
tree127544e6e773067d291bf83b89d8e3558b253c19
parent5cea880349a3a680f7a68a42fc34b37530cff726 (diff)
downloadCommon-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.js2
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