Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Aug 29, 2023
1 parent 4669bcd commit f7d4ff6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions ui/src/actions/taskForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export function showForm(
formName,
sampleQueueID = [],
taskData = {},
pointQueueID = -1,
pointQueueID = -1
) {
return {
type: 'SHOW_FORM',
Expand All @@ -17,7 +17,7 @@ export function showTaskForm(
formName,
sampleQueueID = -1,
taskData = {},
pointQueueID = -1,
pointQueueID = -1
) {
return function (dispatch) {
dispatch(showForm(formName, sampleQueueID, taskData, pointQueueID));
Expand All @@ -28,4 +28,4 @@ export function hideTaskParametersForm() {
return {
type: 'HIDE_FORM',
};
}
}
6 changes: 3 additions & 3 deletions ui/src/components/SampleView/SampleImage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class SampleImage extends React.Component {
this.canvas.on('mouse:down', this.leftClick);
this.canvas.on('mouse:move', this.onMouseMove);
this.canvas.on('mouse:up', this.onMouseUp);

/* */
this.canvas.on('selection:created', this.selectShapeEvent);
this.canvas.on('selection:cleared', this.clearSelectionEvent);
this.canvas.on('selection:updated', this.selectShapeEvent);
Expand Down Expand Up @@ -192,8 +192,8 @@ export default class SampleImage extends React.Component {
this.canvas.add(this.centringVerticalLine);
this.canvas.add(this.centringHorizontalLine);
}
if (options.e.buttons > 0 && this.drawGridPlugin.drawing) {

if (options.e.buttons > 0 && this.drawGridPlugin.drawing) {
this.drawGridPlugin.update(
this.canvas,
options.e.layerX,
Expand Down
7 changes: 2 additions & 5 deletions ui/src/containers/TaskContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ import XRFScan from '../components/Tasks/XRFScan';
import EnergyScan from '../components/Tasks/EnergyScan';
import GenericTaskForm from '../components/Tasks/GenericTaskForm';

import {
hideTaskParametersForm,
showTaskForm,
} from '../actions/taskForm';
import { hideTaskParametersForm, showTaskForm } from '../actions/taskForm';

import {
addTask,
Expand Down Expand Up @@ -288,7 +285,7 @@ function mapDispatchToProps(dispatch) {
showTaskParametersForm: bindActionCreators(showTaskForm, dispatch),
hideTaskParametersForm: bindActionCreators(
hideTaskParametersForm,
dispatch,
dispatch
),
updateTask: bindActionCreators(updateTask, dispatch),
addTask: bindActionCreators(addTask, dispatch),
Expand Down

0 comments on commit f7d4ff6

Please sign in to comment.