Skip to content

Commit

Permalink
PR remarks
Browse files Browse the repository at this point in the history
Signed-off-by: Florent MILLOT <millotflo@gmail.com>
  • Loading branch information
flomillot committed May 15, 2024
1 parent 162cdf4 commit 7265770
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,7 @@ const ExplicitNamingFilterEditionDialog: FunctionComponent<
messageTxt: error,
});
},
onClose,
undefined
onClose
);
if (selectionForCopy.sourceItemUuid === id) {
setSelectionForCopy(noSelectionForCopy);
Expand Down
2 changes: 1 addition & 1 deletion src/components/filter/utils/filter-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const saveExplicitNamingFilter = (
id: string | null,
setCreateFilterErr: (value: any) => void,
handleClose: () => void,
activeDirectory: UUID | undefined,
activeDirectory?: UUID,
token?: string
) => {
// we remove unnecessary fields from the table
Expand Down
4 changes: 2 additions & 2 deletions src/services/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export const backendFetch = (url: string, init: any, token?: string) => {
};

const prepareRequest = (init: any, token?: string) => {
if (!(typeof init == 'undefined' || typeof init == 'object')) {
if (!(typeof init === 'undefined' || typeof init === 'object')) {
throw new TypeError(
'Argument 2 of backendFetch is not an object : ' + typeof init
'First argument of prepareRequest is not an object : ' + typeof init
);
}
const initCopy = Object.assign({}, init);
Expand Down

0 comments on commit 7265770

Please sign in to comment.