Skip to content

Commit

Permalink
Merge pull request #1120 from yaacov/show-default-instead-of-1-in-mus…
Browse files Browse the repository at this point in the history
…t-gather-settings

🧼 If must gather settings is default value of -1 show default
  • Loading branch information
yaacov authored Apr 17, 2024
2 parents 642ffd3 + b45f561 commit 870d01c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@ const SettingsCard_: FC<SettingsCardProps> = ({ obj }) => {
<DetailsItem
title={'Must gather cleanup after (hours)'}
showHelpIconNextToTitle={true}
content={mustGatherAPICleanupMaxAge || <span className="text-muted">{'Disabled'}</span>}
content={
mustGatherAPICleanupMaxAge && mustGatherAPICleanupMaxAge !== '-1' ? (
mustGatherAPICleanupMaxAge
) : (
<span className="text-muted">{'Disabled'}</span>
)
}
moreInfoLink={
'https://access.redhat.com/documentation/en-us/migration_toolkit_for_virtualization/2.6/html-single/installing_and_using_the_migration_toolkit_for_virtualization/index#advanced-migration-options'
}
Expand Down

0 comments on commit 870d01c

Please sign in to comment.