Skip to content

Commit

Permalink
beta & list fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Jul 10, 2024
1 parent d147861 commit 879853b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/components/KymaModules/KymaModulesAddModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,12 @@ export default function KymaModulesAddModule(props) {
}
key={channel.channel}
value={channel.channel}
>{`${channel.channel[0].toUpperCase()}${channel.channel.slice(
1,
)} (v${channel.version}${
channel?.isBeta ? '-beta' : ''
})`}</Option>
additionalText={channel?.isBeta ? 'Beta' : ''}
>
{`${channel.channel[0].toUpperCase()}${channel.channel.slice(
1,
)} (v${channel.version})`}{' '}
</Option>
))}
</Select>
{module.docsUrl ? (
Expand Down
2 changes: 1 addition & 1 deletion src/components/KymaModules/KymaModulesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function KymaModulesList(props) {
const hasDetailsLink = resource => {
const isInstalled =
selectedModules?.findIndex(kymaResourceModule => {
return kymaResourceModule.name === resource.name;
return kymaResourceModule?.name === resource?.name;
}) >= 0;
const moduleStatus = findStatus(resource.name);
const isDeletionFailed = moduleStatus?.state === 'Warning';
Expand Down

0 comments on commit 879853b

Please sign in to comment.