Skip to content

fix(outline): prevent editor launch on add component#92

Merged
viv-helix merged 1 commit into
release-ulmofrom
feat/TNL2-591
Apr 16, 2026
Merged

fix(outline): prevent editor launch on add component#92
viv-helix merged 1 commit into
release-ulmofrom
feat/TNL2-591

Conversation

@viv-helix
Copy link
Copy Markdown
Member

Description

This change prevents the block editor from automatically opening when a component is added from the Course Outline page.

  • Removed await on refetchUnitData() inside onComponentCreated
  • This avoids triggering the editor launch flow tied to unit data refresh
  • Editor will still open as expected when adding components from the Unit page

Why

The new “Add component on outline page” feature should allow quick content additions without disrupting the user flow by opening the editor.

Behavior changes

✅ Outline page: adding a component does not open the editor
✅ Unit page: adding a component still opens the editor

Testing

  • Add a component from the Outline page → verify editor does not open
  • Add a component from the Unit page → verify editor still opens as expected

Jira

@viv-helix viv-helix changed the title fix(course-outline): prevent editor launch when adding component from… fix(outline): prevent editor launch when adding component from… Apr 15, 2026
@viv-helix viv-helix changed the title fix(outline): prevent editor launch when adding component from… fix(outline): prevent editor launch on add component Apr 15, 2026
@viv-helix viv-helix merged commit ac4f1bd into release-ulmo Apr 16, 2026
4 checks passed
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.

2 participants