mrichar1 / pinia-jsonapi

Use a JSONAPI api with a Pinia store, with data restructuring/normalization. Topics
GNU Affero General Public License v3.0
8 stars 2 forks source link

utils.getIncludedRecords() should return always an array #7

Closed germanp closed 2 months ago

germanp commented 2 months ago

It should return an empty array to be consistent with the data type, it returns empty object wich is not quite useful.

https://github.com/mrichar1/pinia-jsonapi/blob/666e9345f4d3af6d4427e3f5eb5725a4848ea60a/src/lib.js#L520

mrichar1 commented 2 months ago

Thanks for flagging this up - yes it was inconsistent and I've changed as suggested :+1: