@centreon/ui 25.1.0 → 25.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@centreon/ui",
3
- "version": "25.1.0",
3
+ "version": "25.1.1",
4
4
  "description": "Centreon UI Components",
5
5
  "scripts": {
6
6
  "update:deps": "pnpx npm-check-updates -i --format group",
@@ -38,9 +38,9 @@ const UnsavedChangesDialog = ({
38
38
 
39
39
  const labelConfirm = isValidForm ? labelSave : labelResolve;
40
40
 
41
- const labelMessage = `${
42
- isValidForm ? labelIfYouClickOnDiscard : labelThereAreErrorsInTheForm
43
- } ${isValidForm ? '' : labelDoYouWantToQuitWithoutResolving}`;
41
+ const labelMessage = isValidForm
42
+ ? labelIfYouClickOnDiscard
43
+ : `${labelThereAreErrorsInTheForm} ${labelDoYouWantToQuitWithoutResolving}`;
44
44
 
45
45
  if (not(dialogOpened)) {
46
46
  return null;