Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Sep 20, 2023
1 parent f8b67a4 commit 03d76cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion ui/src/actions/queue.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { loadSample } from './sampleChanger';
import { sendAbortCentring, sendUpdateShapes } from './sampleview';
import { selectSamplesAction, clearSampleGrid } from './sampleGrid';
import { TASK_UNCOLLECTED } from '../constants';
import { clearAllLastUserParameters } from '../components/Tasks/fields';

export function queueLoading(loading) {
return { type: 'QUEUE_LOADING', loading };
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Tasks/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function saveToLastUsedParameters(formName, parameters) {
localStorage.setItem(`last${formName}Parameters`, JSON.stringify(parameters));
}

export function clearAllLastUserParameters() {
export function clearAllLastUsedParameters() {
const collectionNames = [
'datacollection',
'characterisation',
Expand Down
4 changes: 2 additions & 2 deletions ui/src/reducers/queue.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import update from 'immutability-helper';
import { QUEUE_STOPPED, CLICK_CENTRING } from '../constants';
import { clearAllLastUserParameters } from '../components/Tasks/fields';
import { clearAllLastUsedParameters } from '../components/Tasks/fields';

const initialState = {
queue: [],
Expand Down Expand Up @@ -44,7 +44,7 @@ export default (state = initialState, action) => {
}
case 'SET_CURRENT_SAMPLE':
if (!state.rememberParametersBetweenSamples) {
clearAllLastUserParameters();
clearAllLastUsedParameters();
}

return {
Expand Down

0 comments on commit 03d76cf

Please sign in to comment.