From 13bddcd687120ceb3989ce155a657262b77463aa Mon Sep 17 00:00:00 2001 From: stanislavh Date: Fri, 20 Sep 2024 14:08:28 +0200 Subject: [PATCH] SONAR-23050 Remove one extra close button when restoring QP --- .../js/apps/quality-profiles/home/RestoreProfileForm.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx index 224775aa7e1..18f5c47d627 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx @@ -116,7 +116,7 @@ export default function RestoreProfileForm({ onClose, onRestore }: Readonly } primaryButton={ - ruleSuccesses == null ? ( + ruleSuccesses == null && ( - ) : ( - ) } secondaryButtonLabel={intl.formatMessage({ id: ruleSuccesses == null ? 'cancel' : 'close' })} -- 2.39.5