Item.mjs contains several unused blocks of code and the majority of its functions make direct assignment changes to the object's data instead of using the .update() method provided.
Move item actions to a separate file and refactor these functions to update the data model properly.
Item.mjs contains several unused blocks of code and the majority of its functions make direct assignment changes to the object's data instead of using the
.update()
method provided.Move item actions to a separate file and refactor these functions to update the data model properly.