Skip to content

Commit

Permalink
exclude findspot from update
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz committed Jan 24, 2024
1 parent 4ecc42d commit 82cec6c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/fragmentarium/ui/fragment/ArchaeologyEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Findspot,
SiteKey,
excavationSites,
toFindspotDto,
} from 'fragmentarium/domain/archaeology'
import { Fragment } from 'fragmentarium/domain/fragment'
import withData from 'http/withData'
Expand Down Expand Up @@ -133,9 +132,7 @@ class ArchaeologyEditor extends Component<Props, State> {
..._.omitBy(
{
...this.state,
findspot: this.state.findspot
? toFindspotDto(this.state.findspot)
: null,
findspot: null,
error: null,
},
(value) => _.isNil(value) || value === ''
Expand Down

0 comments on commit 82cec6c

Please sign in to comment.