From 6ce432f389ef88beab074d2c3d8d34de7e0c4ca9 Mon Sep 17 00:00:00 2001 From: Imran Farhat Date: Tue, 16 Jun 2026 12:40:12 +0530 Subject: [PATCH] fix: pass version/branch to fetchSchematic and default branch to master (Bug 9, Bug 5) Bug 9: - LAUNCH button on saved circuits called fetchSchematic(sch.save_id) with only one argument - fetchSchematic builds the API URL as save/{id}/{version}/{branch}, so missing version/branch resulted in save/{id}/undefined/undefined - Fix: pass sch.version and sch.branch (both present in the SaveListSerializer response) to fetchSchematic Bug 5: - Loading a shared circuit URL with no branch query param resulted in the same save/{id}/{version}/undefined API call failure, causing a blank canvas - Fix: default branch to 'master' when the branch query param is absent --- eda-frontend/src/components/SchematicEditor/ToolbarExtension.js | 2 +- eda-frontend/src/pages/SchematiEditor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js b/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js index 7a8e5d1fa..5568fa220 100644 --- a/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js +++ b/eda-frontend/src/components/SchematicEditor/ToolbarExtension.js @@ -862,7 +862,7 @@ export function OpenSchDialog (props) {