Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fhernandezvivanco committed Mar 15, 2024
1 parent 1870cee commit 4c0e364
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ui/src/components/SampleView/DrawGridPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,12 @@ export default class DrawGridPlugin {
}

const result_length = Object.values(result).length;
if (result !== undefined && result !== null && gd.id !== null && result_length > 0) {
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 @@ -402,7 +407,10 @@ export default class DrawGridPlugin {
}

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

0 comments on commit 4c0e364

Please sign in to comment.