Skip to content

Commit

Permalink
ensure latest version is installed when using npm tab
Browse files Browse the repository at this point in the history
- closes #2109
  • Loading branch information
foxriver76 committed Sep 17, 2023
1 parent bdd1d36 commit 8548ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/src/dialogs/GitHubInstallDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ class GitHubInstallDialog extends React.Component<GitHubInstallDialogProps, GitH
} else if (this.state.currentTab === 'npm') {
const parts = (this.state.autoCompleteValue?.value || '').split('/');
if (!parts[0].includes('.')) {
this.props.installFromUrl(`iobroker.${parts[0]}`, this.state.debug, true);
this.props.installFromUrl(`iobroker.${parts[0]}@latest`, this.state.debug, true);
} else {
this.props.installFromUrl(parts[0], this.state.debug, true);
this.props.installFromUrl(`${parts[0]}@latest`, this.state.debug, true);
}
}
this.props.onClose();
Expand Down

0 comments on commit 8548ac9

Please sign in to comment.