message: check to prevent duplicate feature flag components
diff: @@ -310,10 +310,16 @@ export class AppManager implements BackstageApp {
  // Go through the featureFlags returned from the traversal and
  // register those now the configApi has been loaded
  + const registeredFlags = featureFlagsApi.getRegisteredFlags();
  for (const name of featureFlags) {
  + // Prevents adding duplicate feature flags
  + if (!registeredFlags.some((featureFlag) => {
  + return featureFlag.name === name
  + })) {
  featureFlagsApi.registerFlag({ name, pluginId: '' });
  }
  }
  + }
  }, [hasConfigApi, loadedConfig, featureFlags]);
  if ('node' in loadedConfig) {
  