Skip to content

Fix tomo styleguide page

Thomas Vincent requested to merge fix-tomo-demo into master

This MR fixes an issue in the tomo styleguide page with a missing arguments

TypeError: other is undefined

div
./node_modules/js-quantities/build/quantities.js:1519

  1516 |   other = Qty(other);
  1517 | }
  1518 | 
> 1519 | if (other.scalar === 0) {
       | ^
  1520 |   throw new QtyError("Divide by zero");
  1521 | }
  1522 | 

Beam
./src/components/konva/TomoDetectorBackground.tsx:40

  37 |   return <></>;
  38 | }
  39 | 
> 40 | const xposition = detectorData.imagePosition
     | ^
  41 |   .sub(sampyPosition)
  42 |   .sub(syPosition)
  43 |   .div(detectorData.imagePixelSize);
Edited by Thomas Vincent

Merge request reports