Adding the beginning of the assets loading code in the editor.
Fixed a type error between the database and items.