Skip to content

Instantly share code, notes, and snippets.

@hachibu
Last active April 23, 2020 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hachibu/f7af0dcf7e3cfea2b3d49a1ea195c23d to your computer and use it in GitHub Desktop.
Save hachibu/f7af0dcf7e3cfea2b3d49a1ea195c23d to your computer and use it in GitHub Desktop.
async function loadFilters() {
let segments = await FiltersModel.getSegments().catch(console.error);
segments.forEach(async segment => {
let segmentTerms = await FiltersModel.getSegmentTerms(segment).catch(console.error);
console.log(segmentTerms);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment