fix: resolve undefined config properties in performUpdate
- Added optional chaining for newConfig.ide access - Added ides array to config object in performUpdate - Fixes 'Cannot read properties of undefined' error after update - Ensures all required config properties are present for showSuccessMessage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -552,7 +552,8 @@ class Installer {
|
|||||||
installType: manifest.install_type,
|
installType: manifest.install_type,
|
||||||
agent: manifest.agent,
|
agent: manifest.agent,
|
||||||
directory: installDir,
|
directory: installDir,
|
||||||
ide: newConfig.ide || manifest.ide_setup, // Use new IDE choice if provided
|
ide: newConfig?.ide || manifest.ide_setup, // Use new IDE choice if provided
|
||||||
|
ides: newConfig?.ides || manifest.ides_setup || [],
|
||||||
};
|
};
|
||||||
|
|
||||||
await this.performFreshInstall(config, installDir, spinner);
|
await this.performFreshInstall(config, installDir, spinner);
|
||||||
|
|||||||
Reference in New Issue
Block a user