We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68e6378 commit 3da363eCopy full SHA for 3da363e
src/logic/FeatureModel.ts
@@ -149,6 +149,9 @@ export class FeatureModelManager {
149
delete model.features[name]
150
// add feature name to the collection of removed features
151
removed.push(name)
152
+ // remove this feature as a child of its parent
153
+ if (!feature.parent) { throw new Error('cannot remove the root feature') }
154
+ removeFromArray(model.features[feature.parent].children, name)
155
// remove all configurations of this feature
156
for (const configuration of Object.values(model.configurations)) {
157
delete configuration.features[name]
0 commit comments