sanger/traction-ui

Y24-444 - [BUG] When creating a run and removing a pool from the list while the pool is assigned to a well there is a console error with tubeContents

stevieing opened this issue · 0 comments

Describe the bug
When creating a run and removing a pool from the list while the pool is assigned to a well there is a console error with tubeContents.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to page create run
  2. Scan a pool barcode and press search
  3. Select pool from list and drop it on a well
  4. remove the pool from the list
  5. Console error:
Uncaught (in promise) TypeError: store.tubeContents.find(...) is undefined
    tooltip PacbioRunWell.vue:122
    tooltip PacbioRunWell.vue:118
    refreshComputed reactivity.esm-bundler.js:377
    isDirty reactivity.esm-bundler.js:347
    runIfDirty reactivity.esm-bundler.js:259
    callWithErrorHandling runtime-core.esm-bundler.js:199
    flushJobs runtime-core.esm-bundler.js:408
    promise callback*queueFlush runtime-core.esm-bundler.js:322
    queueJob runtime-core.esm-bundler.js:317
    scheduler runtime-core.esm-bundler.js:5411
    trigger reactivity.esm-bundler.js:250
    endBatch reactivity.esm-bundler.js:308
    trigger reactivity.esm-bundler.js:721
    deleteProperty reactivity.esm-bundler.js:1013
    removePool pacbioRunCreate.js:497
    wrappedAction pinia.mjs:1405
    actionName pinia.mjs:932
    removeTube PacbioRunTubeItem.vue:183
    callWithErrorHandling runtime-core.esm-bundler.js:199
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:206
    invoker runtime-dom.esm-bundler.js:722

Expected behaviour
No error.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Windows or Mac?
  • Browser Chrome, Firefox, Safari or other?
  • Browser version (use 'About' to look up)?

Additional context
Add any other context about the problem here.