Skip to content

fix(workshop): show newest code version when none is active - #746

Merged
tiberius0954 merged 1 commit into
masterfrom
fix/workshop-code-version-fallback
Oct 19, 2026
Merged

tiberius0954 merged 1 commit into
masterfrom
fix/workshop-code-version-fallback

Conversation

@tiberius0954

Copy link
Copy Markdown
Contributor

What

Fall back to the newest code version when no version is flagged active, instead of leaving the selection undefined.

Why

find(cv => cv.is_current) returns undefined for a collectable with no active version, so the editor showed the empty "no code yet" placeholder even though code versions exist.

find(cv => cv.is_current) returns undefined for a collectable with no
active version, leaving the editor on the empty placeholder; fall back to
the newest version instead.
@snyk-io

snyk-io Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@tiberius0954
tiberius0954 merged commit bdec9f3 into master Oct 19, 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