Skip to content

Commit 0845dd7

Browse files
Lint
1 parent 3b61c62 commit 0845dd7

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

ui/src/actions/beamlineActions.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,11 @@ export function startBeamlineAction(cmdName, parameters, showOutput = true) {
4646
dispatch(showActionOutput(cmdName));
4747
}
4848

49-
sendExecuteCommand('beamlineaction', 'beamline_actions', 'run_action',
50-
{
51-
value : {
52-
cmd: cmdName,
53-
parameters,
54-
}
49+
sendExecuteCommand('beamlineaction', 'beamline_actions', 'run_action', {
50+
value: {
51+
cmd: cmdName,
52+
parameters,
53+
},
5554
});
5655
};
5756
}

ui/src/actions/sampleview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ export function rotateToShape(sid) {
160160

161161
export function recordCentringClick(x, y) {
162162
return async (dispatch) => {
163-
let json = {}
163+
let json = {};
164164

165165
try {
166166
json = await sendRecordCentringClick(x, y);
167167
} catch {
168168
dispatch(showErrorPanel(true, 'Error while centring, please try again'));
169169
await dispatch(abortCentring());
170-
return;
170+
return;
171171
}
172172

173173
const { clicksLeft } = json;

ui/src/api/apiBase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import safeJsonAddon from './addons/safeJson';
44

55
const baseApi = wretch('/mxcube/api/v0.1')
66
.addon(safeJsonAddon())
7-
.headers({ Accept: 'application/json'});
7+
.headers({ Accept: 'application/json' });
88

99
export default baseApi;

ui/src/components/Tasks/AddSample.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function AddSample() {
8585
{errors.proteinAcronym?.message}
8686
</Form.Control.Feedback>
8787
</Col>
88-
</Form.Group>
88+
</Form.Group>
8989
<Form.Group as={Row} className="mb-3" controlId="sampleName">
9090
<Col sm={4}>
9191
<Form.Label column>Sample name</Form.Label>

ui/src/components/Tasks/CustomFieldTemplate.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
margin-bottom: 1.5em;
33
}
44

5-
.fieldTitle {
5+
.fieldTitle {
66
display: flex;
77
align-items: center;
88
gap: 0.5rem;

ui/src/components/Tasks/GenericTaskForm.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ class GenericTaskForm extends React.Component {
5454
}
5555

5656
get isFormValid() {
57-
return (
58-
this.props.valid &&
59-
this.state.rjsfErrors.length === 0
60-
);
57+
return this.props.valid && this.state.rjsfErrors.length === 0;
6158
}
6259

6360
clearCurrentJSFormParameters() {

0 commit comments

Comments
 (0)