Skip to content

fix: prevent TypeError when creating new project from Planet interface#6186

Open
mishtiagrawal02-cloud wants to merge 2 commits intosugarlabs:masterfrom
mishtiagrawal02-cloud:fix-planetinterface-newproject-error
Open

fix: prevent TypeError when creating new project from Planet interface#6186
mishtiagrawal02-cloud wants to merge 2 commits intosugarlabs:masterfrom
mishtiagrawal02-cloud:fix-planetinterface-newproject-error

Conversation

@mishtiagrawal02-cloud
Copy link

PR-CATEGORY: FIX

Summary
Fixes #ISSUE_NUMBER

Root Cause
PlanetInterface.newProject() calls this.activity._loadStart(), but the function does not exist on the activity object.

Fix
Added a safety check before calling _loadStart() to prevent a runtime TypeError.

Testing
Reproduced the bug locally by:

  1. Opening the Planet interface
  2. Clicking the "+" button

The console error no longer appears after the fix.

PR Category

  • Bug Fix
  • Feature
  • Performance
  • Tests
  • Documentation

@github-actions github-actions bot added the bug fix Fixes a bug or incorrect behavior label Mar 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

❌ Some Jest tests failed. Please check the logs and fix the issues before merging.

Failed Tests:

GraphicsBlocks.test.js

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

✅ All Jest tests passed! This PR is ready to merge.

@mishtiagrawal02-cloud
Copy link
Author

Hi @walterbender please review My PR: #6186

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Fixes a bug or incorrect behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant