Skip to content

Commit

Permalink
fix(reception): refetches labware when request options are changed to…
Browse files Browse the repository at this point in the history
… ensure sample and request data stays up to date
  • Loading branch information
BenTopping committed Jan 16, 2024
1 parent 7f766bd commit 9a33505
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/GeneralReception.vue
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,18 @@ export default {
// printEnabled is used to disable the print button if there are no barcodes to print
printEnabled: ({ printerName, printBarcodes }) => printerName && printBarcodes,
},
// Refetches the data when the barcodes field is changed
watch: {
// Refetches the data when the barcodes field is changed
barcodes: {
handler: 'debounceBarcodeFetch',
immediate: true,
},
// Refetches the data when a request option changes as it may require information from sequencescape
requestOptions: {
handler: 'debounceBarcodeFetch',
deep: true,
immediate: true,
},
},
methods: {
clearModal() {
Expand Down

0 comments on commit 9a33505

Please sign in to comment.