[Vuejs]-Getting a Vue warning TypeError: Cannot read property of undefined but the data is present

0👍

The problem might be the computed property for itemName.
If this.myAssets is empty or does not contain the correct item find() in getAssetId returns undefined (https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Array/find).
getAssetId is used in the computed property for itemNamewhere you are trying access itemName of undefined.

👤puelo

Leave a comment