CottageCabbage / vu-dooit

Task Manager application for Web, Desktop and Mobile. Still in development
https://CottageCabbage.github.io/vu-dooit
3 stars 1 forks source link

When 'priority: ---' doesn't exist in the Task object, task doesn't get the null styling #22

Closed CottageCabbage closed 2 years ago

CottageCabbage commented 2 years ago

Relevant: https://github.com/CottageCabbage/vu-dooit/commit/8e85ac20350a7e0cd0358629c1b6e15a80b06e24

I assumed that if a property didn't exist, it would return null and the switch () would get that, but it doesn't seem so?

It should be easy enough making so that tasks always get the priority property when they're created, but this should be a nice failsafe?

Also, the priority classes rn are literally just {background: red} & {background: green}. It's kinda ugly. Fix that later.

CottageCabbage commented 2 years ago

Just remembered that switch () had a default thing. Use that probably?