Skip to content

Commit

Permalink
fix: add fish id to bulk-uploaded data
Browse files Browse the repository at this point in the history
This was preventing the rows for bulk-uploaded data from being selectable.

Fixes #458
  • Loading branch information
stdavis committed Jan 28, 2025
1 parent 010c4ca commit 800bebf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/catch/Catch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import DataGridAddDeleteButtons from '../DataGridAddDeleteButtons.jsx';
import GridTab from '../GridTab.jsx';
import { batchFishWeights, getLastFishIdsWithEmptyWeights } from './batchUtils';
import MoreInfoDialog from './MoreInfoDialog.jsx';
import getGUID from '../../helpers/getGUID.js';

const fn = config.fieldNames.fish;
const hiddenColumns = [fn.FISH_ID, fn.PASS_NUM, fn.NOTES];
Expand Down Expand Up @@ -204,6 +205,7 @@ function Catch() {
return {
...getBlankFish(),
[fn.EVENT_ID]: eventId,
[config.fieldNames.fish.FISH_ID]: getGUID(),
[fn.PASS_NUM]: currentPass,
[fn.CATCH_ID]: i + startId,
...data,
Expand Down

0 comments on commit 800bebf

Please sign in to comment.