Skip to content

Commit

Permalink
Merge pull request #1350 from opencomponents/fix-adding-client
Browse files Browse the repository at this point in the history
fix not adding oc-client on dev mode multiple times
  • Loading branch information
ricardo-devis-agullo authored Jan 4, 2024
2 parents 7cf54e6 + bc6a431 commit 276b3ff
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/registry/domain/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export default function repository(conf: Config) {
return isValidComponent;
});

validComponents.push('oc-client');
return validComponents;
return [...validComponents, 'oc-client'];
},
getComponentVersions(componentName: string): Promise<string[]> {
if (componentName === 'oc-client') {
Expand Down Expand Up @@ -356,9 +355,8 @@ export default function repository(conf: Config) {
};
}

const componentVersions = await repository.getComponentVersions(
componentName
);
const componentVersions =
await repository.getComponentVersions(componentName);

if (
!versionHandler.validateNewVersion(componentVersion, componentVersions)
Expand Down

0 comments on commit 276b3ff

Please sign in to comment.