Skip to content

Commit

Permalink
fix minor bug with package exmaples not updating on change
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Aug 9, 2024
1 parent adb08f1 commit 83c3e4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev-server-frontend/src/ExampleContentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const ExampleContentView = () => {
{pkg && (viewMode === "schematic" || viewMode === "split") && (
<ErrorBoundary fallback={<div>Failed to render Schematic</div>}>
<Schematic
key={`sch-${pkg?.soup_last_updated_at}`}
key={`sch-${pkg?.dev_package_example_id}-${pkg?.soup_last_updated_at}`}
style={{ height: itemHeight }}
soup={pkg.tscircuit_soup}
showTable={false}
Expand All @@ -82,7 +82,7 @@ export const ExampleContentView = () => {
{pkg && (viewMode === "pcb" || viewMode === "split") && (
<ErrorBoundary fallback={<div>Failed to render PCB</div>}>
<PCBViewer
key={`pcb-${pkg?.soup_last_updated_at}`}
key={`pcb-${pkg?.soup_last_updated_at}-${pkg?.edit_events_last_applied_at}`}
height={itemHeight}
allowEditing
editEvents={editEvents}
Expand Down

0 comments on commit 83c3e4a

Please sign in to comment.