Skip to content

Fix: LAUNCH button blank canvas and shared circuit missing branch#22

Open
ImranFarhat01 wants to merge 1 commit into
FOSSEE:developfrom
ImranFarhat01:fix/fetch-schematic-clean
Open

Fix: LAUNCH button blank canvas and shared circuit missing branch#22
ImranFarhat01 wants to merge 1 commit into
FOSSEE:developfrom
ImranFarhat01:fix/fetch-schematic-clean

Conversation

@ImranFarhat01

@ImranFarhat01 ImranFarhat01 commented Jun 16, 2026

Copy link
Copy Markdown

Problem

1: Clicking LAUNCH on a saved circuit in the schematics list
loaded a blank canvas instead of the circuit.

2: Opening a shared circuit URL with no branch query
parameter also resulted in a blank canvas.

Root Cause

fetchSchematic builds the API request as save/{id}/{version}/{branch}.
In both cases, version and/or branch were undefined, producing a
request like save/{id}/undefined/undefined, which fails.

Fix

  • LAUNCH button now passes sch.version and sch.branch (both
    already present in the SaveListSerializer API response) to
    fetchSchematic
  • Default branch to 'master' when the branch query param is
    absent from the URL

Testing

  • Saved a circuit, clicked LAUNCH from the schematics list: circuit
    loads correctly on canvas
  • Opened a shared circuit URL with no branch param: circuit loads
    correctly instead of showing a blank canvas

…er (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
@ImranFarhat01 ImranFarhat01 changed the title Fix: LAUNCH button blank canvas and shared circuit missing branch (Bug 9, Bug 5) Fix: LAUNCH button blank canvas and shared circuit missing branch Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant