Skip to content

Commit

Permalink
chore(ui): Resolve issues detected by sonarcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Sep 5, 2024
1 parent 67ee71c commit e0afdd5
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions frontend/src/map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,14 @@ abstract class Map<P, S> extends React.Component<P & MapProps, S & MapState > {
}

if (result.openDialog) {
this.setState({
...this.state,

dialogOpen: true,
dialogTitle: result.openDialog.title,
dialogBody: result.openDialog.body
this.setState(prevState => {
return {
...prevState,

Check failure on line 384 in frontend/src/map/Map.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

Trailing spaces not allowed
dialogOpen: true,
dialogTitle: result.openDialog!.title,
dialogBody: result.openDialog!.body
}

Check failure on line 388 in frontend/src/map/Map.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

Missing semicolon
});
}

Expand Down Expand Up @@ -415,12 +417,14 @@ abstract class Map<P, S> extends React.Component<P & MapProps, S & MapState > {
}

if (result.openDialog) {
this.setState({
...this.state,
this.setState(prevState => {
return {
...prevState,

dialogOpen: true,
dialogTitle: result.openDialog.title,
dialogBody: result.openDialog.body
dialogOpen: true,
dialogTitle: result.openDialog!.title,
dialogBody: result.openDialog!.body
}

Check failure on line 427 in frontend/src/map/Map.tsx

View workflow job for this annotation

GitHub Actions / build (20.x)

Missing semicolon
});
}

Expand Down

0 comments on commit e0afdd5

Please sign in to comment.