Skip to content

Commit

Permalink
remove useless changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Seddik Yengui committed Aug 4, 2023
1 parent 8bf4bcd commit 84de0fe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/components/FlatParameters/FlatParameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@ export const FlatParameters = ({
);

function mixInitAndDefault(param) {
console.log('uncommitted : ', uncommitted)
console.log('param.name : ', param.name, '==>', param.name === inEditionParam && uncommitted !== null)

console.log('initValues : ', initValues, initValues.hasOwnProperty(param.name));
if (param.name === inEditionParam && uncommitted !== null) {
return uncommitted;
} else if (initValues && initValues.hasOwnProperty(param.name)) {
Expand Down Expand Up @@ -228,10 +224,10 @@ export const FlatParameters = ({
};

const getStringListValue = (allValues, selectValues) => {
console.log('selectValues : ', selectValues)
if (!Array.isArray(selectValues) || selectValues?.length === 0) {
return intl.formatMessage({id: 'flat_parameters/none'})

Check warning on line 228 in src/components/FlatParameters/FlatParameters.js

View workflow job for this annotation

GitHub Actions / build

Replace `id:·'flat_parameters/none'})` with `·id:·'flat_parameters/none'·});`
}

if (selectValues.length === allValues.length) {
return intl.formatMessage({id: 'flat_parameters/all'})

Check warning on line 232 in src/components/FlatParameters/FlatParameters.js

View workflow job for this annotation

GitHub Actions / build

Replace `id:·'flat_parameters/all'})` with `·id:·'flat_parameters/all'·});`
}
Expand Down
7 changes: 7 additions & 0 deletions src/components/FlatParameters/multiple-selection-dialog.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/**
* Copyright (c) 2023, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

import { Dialog, DialogContent, Divider } from '@mui/material';
import DialogTitle from '@mui/material/DialogTitle';
import { FormattedMessage, useIntl } from 'react-intl';
Expand Down
2 changes: 1 addition & 1 deletion src/components/translations/flat-parameters-en.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ const flat_parameters_en = {
'flat_parameters/selectAll': 'Select all',
};

export default flat_parameters_en;
export default flat_parameters_en;
2 changes: 1 addition & 1 deletion src/components/translations/flat-parameters-fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ const flat_parameters_fr = {
'flat_parameters/selectAll': 'Tout sélectionner',
};

export default flat_parameters_fr;
export default flat_parameters_fr;

0 comments on commit 84de0fe

Please sign in to comment.