Skip to content

Commit

Permalink
lint + build fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
  • Loading branch information
stevecassidy committed Dec 9, 2024
1 parent 5a78c68 commit d8c9fe0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions app/src/gui/components/autoincrement/edit-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ export const AutoIncrementEditForm = ({

const updateRange = (index: number) => {
return (range: LocalAutoIncrementRange) => {
const rangesCopy = [...ranges];
rangesCopy[index] = range;
updateRanges(rangesCopy);
if (ranges) {
const rangesCopy = [...ranges];
rangesCopy[index] = range;
updateRanges(rangesCopy);
}
};
};

Expand Down
1 change: 0 additions & 1 deletion app/src/gui/components/record/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import {
upsertFAIMSData,
} from '@faims3/data-model';
import {NavigateFunction} from 'react-router-dom';
import {DEBUG_APP} from '../../../buildconfig';
import * as ROUTES from '../../../constants/routes';
import {store} from '../../../context/store';
import {getFieldPersistentData} from '../../../local-data/field-persistent';
Expand Down

0 comments on commit d8c9fe0

Please sign in to comment.