API call may return no data. When this happens, it updates treflePlant in local storage with "undefined". This causing the errors in PlantView component where it's being pulled from local storage and used.
Created validation to check if meta.total equals 0. If so, instead of setting trefle plant local storage to undefined, it creates an instance of the TreflePlant class and uses the default values instead.
PlantPage > updateLocalStorageTreflePlant
API call may return no data. When this happens, it updates treflePlant in local storage with "undefined". This causing the errors in PlantView component where it's being pulled from local storage and used.