We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecad238 + ab744d2 commit ab00745Copy full SHA for ab00745
histomicsui/web_client/panels/MetadataPlot.js
@@ -217,6 +217,9 @@ var MetadataPlot = Panel.extend({
217
}
218
const idx = evt.points[0].pointIndex;
219
const image = this.lastPlotData.data[idx].image;
220
+ if (!image) {
221
+ return;
222
+ }
223
const maxw = 100, maxh = 100;
224
const imgw = Math.min(Math.ceil(image.right - image.left) * 2, maxw);
225
const imgh = Math.min(Math.ceil(image.bottom - image.top) * 2, maxh);
0 commit comments