Skip to content

Commit

Permalink
resolves mxcube#1180
Browse files Browse the repository at this point in the history
  • Loading branch information
fhernandezvivanco committed Mar 15, 2024
1 parent 26fdad8 commit 1870cee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/components/SampleView/DrawGridPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ export default class DrawGridPlugin {
result = gd.result[this.resultType];
}

if (result !== undefined && result !== null && gd.id !== null) {
const result_length = Object.values(result).length;
if (result !== undefined && result !== null && gd.id !== null && result_length > 0) {
for (let nh = 0; nh < row; nh++) {
for (let nw = 0; nw < col; nw++) {
const index = nw + nh * col + 1;
Expand Down Expand Up @@ -401,7 +402,7 @@ export default class DrawGridPlugin {
}

if (!this.drawing) {
if (this.gridResultFormat === 'RGB') {
if (this.gridResultFormat === 'PNG' || this.gridResultFormat === 'RGB') {
const fillingMatrix = this.cellFillingFromData(
gridData,
gridData.numCols,
Expand Down

0 comments on commit 1870cee

Please sign in to comment.