Hidden Locations

Hello,

Is there a way to not have the hidden stores return on the web sdk? I had tried using the includeHidden? : boolean property but does not seem to work on my end. Here is how I am currently calling it:

const options = {
  venue: "venue",
  clientId: "ID",
  clientSecret: "Secret",
  includeHidden: false,
  things: { events: ["event"] }
};```

Thank you!

John

Hi John!

By default the data doesn’t include the hidden property. To have the V5 Web SDK respect includeHidden: false it needs to be added to the things.locations, like you’ve done with events:

const options = {
  venue: "venue",
  clientId: "ID",
  clientSecret: "Secret",
  includeHidden: false,
  things: { 
    events: ["event"],
    locations: ["hidden"],
  }
};

These adjusted options should remove hidden locations from the data.

Zach

Hi Zach,

Thank you for this! It works.

Best,
John

1 Like