Skip to content

Commit

Permalink
fix: populate status field
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Oct 1, 2023
1 parent 59c7980 commit 3fc2f58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ async function getProperties(): Promise<{
const cell = sheet.getCell(idx + 1, 1);
const colour = getBackgroundColor(cell);
if (colour) {
row.RealStatus = statusMapping[colour!];
row.RealStatus = statusMapping[colour];
row['Status?'] = colour;
if (typeof row.RealStatus === 'undefined') {
console.warn('unable to lookup color: ', colour);
}
Expand Down

1 comment on commit 3fc2f58

@vercel
Copy link

@vercel vercel bot commented on 3fc2f58 Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.