getodk / central-frontend

Vue.js based frontend for ODK Central
https://docs.getodk.org/central-intro/
Apache License 2.0
32 stars 56 forks source link

Replace null check with check of dataExists #911

Closed matthew-white closed 9 months ago

matthew-white commented 9 months ago

While reviewing #910, I took a look at how the keys resource is used in various components. I noticed a line that uses keys and has a small issue. It checks whether keys is null, but because keys is a resource, it can never be null. I replaced the null check with a check that keys has data.

Before submitting this PR, please make sure you have: