~javiljoen/shopping-list

f3356834508ca3a24f71e29e608db62da97c6545 — JA Viljoen 4 years ago a18658a
Simplify array lookup by index fallback
1 files changed, 1 insertions(+), 2 deletions(-)

M public/index.html
M public/index.html => public/index.html +1 -2
@@ 46,8 46,7 @@
        },
        filters: {
          titleCase: s => s.charAt(0).toUpperCase() + s.slice(1),
          priorityToString: i =>
            priorities.length > i ? priorities[i] : "Undefined"
          priorityToString: i => priorities[i] || "Undefined"
        },
        mounted: () => {
          toggleVisibility("#loading");