Skip to content

Commit

Permalink
[Tech] delete useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Sep 18, 2024
1 parent e8dd757 commit b8af3f8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ class VigilanceAreas(
@RequestBody createVigilanceAreaInput: VigilanceAreaDataInput,
): VigilanceAreaDataOutput {
val vigilanceAreaEntity = createVigilanceAreaInput.toVigilanceAreaEntity()
logger.info("vigilanceAreaEntity: $vigilanceAreaEntity")
val createdVigilanceArea = createOrUpdateVigilanceArea.execute(vigilanceAreaEntity)
logger.info("Vigilance area: $createdVigilanceArea")

return VigilanceAreaDataOutput.fromVigilanceArea(vigilanceArea = createdVigilanceArea)
}

Expand Down
2 changes: 1 addition & 1 deletion frontend/cypress/e2e/main_window/monitor-ext.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ context('MonitorExt', () => {
it('A user can search semaphore', () => {
cy.wait(200)
cy.clickButton('Chercher un sémaphore')
cy.fill('Rechercher un sémaphore', 'Sémaphore de Fécamp')
cy.fill('Rechercher un sémaphore', 'Sémaphore de Fécamp', { delay: 400 })
cy.get('.baselayer').toMatchImageSnapshot({
imageConfig: {
threshold: 0.05,
Expand Down
2 changes: 1 addition & 1 deletion frontend/package-lock.json

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

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@tanstack/react-table": "8.20.1",
"@tanstack/react-virtual": "beta",
"classnames": "2.5.1",
"compressorjs": "^1.2.1",
"compressorjs": "1.2.1",
"dayjs": "1.11.12",
"deep-object-diff": "1.1.9",
"formik": "2.4.6",
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/utils/normalizeRtkBaseQuery.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { isObject, nullify, undefine } from '@mtes-mct/monitor-ui'
import { omit } from 'lodash'

import { FrontendError } from '../libs/FrontendError'

Expand All @@ -12,7 +11,7 @@ export const normalizeRtkBaseQuery: BaseQueryEnhancer<unknown, {}, {} | void> =
typeof args === 'object' && isObject(args.body)
? {
...args,
body: { ...nullify(omit(args.body, ['images'])), images: args.body.images }
body: nullify(args.body)
}
: args

Expand Down

0 comments on commit b8af3f8

Please sign in to comment.