@whiplashmerch/whiplash-api-client 3.2.17 → 3.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -41962,6 +41962,8 @@ const loadDirectlyRelatedObjects = async (client, input, config, modelCache, per
41962
41962
  const loadIndirectlyRelatedObjects = async (client, input, config, perPage = 25) => {
41963
41963
  let ids = input.map(i => i.id).filter(x => typeof x === 'number');
41964
41964
  ids = [...new Set(ids)];
41965
+ if (ids.length === 0)
41966
+ return input;
41965
41967
  const criteria = config.idKey + '_in';
41966
41968
  const searchParams = {
41967
41969
  search: JSON.stringify({ [criteria]: ids }),