Skip to content

Commit

Permalink
updating addEditAnn dialog to always pass bases to beforeAnnotationCr…
Browse files Browse the repository at this point in the history
…eate
  • Loading branch information
tnrich committed Jun 14, 2024
1 parent 8fc0afc commit 06f0ba0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
- closes #35 [`#35`](https://github.com/TeselaGen/tg-oss/issues/35)
- updating yarn lock [`ff41df0`](https://github.com/TeselaGen/tg-oss/commit/ff41df0b49b8051fcba084f7eaa44cf23284926d)
- updating deps, moving to lodash-es, moving all packages to type: module [`bc7312c`](https://github.com/TeselaGen/tg-oss/commit/bc7312ccbe27c2d9a11cf2563ba978199428b50a)
- updating table styling to remove table last row bottom margin, removing unused S3Download, removing axios dep, updating deps [`8a6fb1f`](https://github.com/TeselaGen/tg-oss/commit/8a6fb1f047550f617c3e56b8c3ebf145967076ef)
- unifying the ui and ove demos [`f23237d`](https://github.com/TeselaGen/tg-oss/commit/f23237d4185830d94f362cbd1dae527ab59ad623)
2 changes: 1 addition & 1 deletion packages/ove/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@teselagen/ove",
"version": "0.5.16",
"version": "0.5.17",
"main": "./src/index.js",
"type": "module",
"exports": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ class AddOrEditAnnotationDialog extends React.Component {
updatedData = data;
}
}
const _bases = updatedData.bases || bases;
if (!data.useLinkedOligo) {
delete updatedData.bases;
}
Expand Down Expand Up @@ -291,6 +292,7 @@ class AddOrEditAnnotationDialog extends React.Component {

if (beforeAnnotationCreate) {
const shouldContinue = await beforeAnnotationCreate({
bases: _bases,
annotationTypePlural,
annotation: newAnnotation,
props: this.props,
Expand Down

0 comments on commit 06f0ba0

Please sign in to comment.