Edirom / WeGA-WebApp

Web application that powers weber-gesamtausgabe.de
https://weber-gesamtausgabe.de
Other
23 stars 10 forks source link

Update crud:doc() #480

Closed riedde closed 3 months ago

riedde commented 3 months ago

crud:doc() can handle if the called ID doesn't exists, but the function fails if no ID is passed through. This occurs, e.g., if an element is read but not @key is available there. To avoid redundant conditionals for checking this, a conditional is implemented into crud:doc() by this PR.