Skip to content

Instantly share code, notes, and snippets.

@NickDeckerDevs
Created January 19, 2022 00:38
Show Gist options
  • Save NickDeckerDevs/e42f715cfa5e98d3aa78ca8b4c0255ed to your computer and use it in GitHub Desktop.
Save NickDeckerDevs/e42f715cfa5e98d3aa78ca8b4c0255ed to your computer and use it in GitHub Desktop.
const data = fitlerType == 'ContentTypes' ? '[data-type="' + clickedItem + '"]' : '[data-topic="' + clickedItem + '"]'
const data = fitlerType == 'ContentTypes' ? `[data-type="${clickedItem}"]` : `[data-topic="${clickedItem}"]`
let data = `[data-topic="${clickedItem}"]`
if(filterType == 'ContentTypes') {
data = `[data-type="${clickedItem}"]`
}
let data = ''
if(filterType == 'ContentTypes') {
data = `[data-type="${clickedItem}"]`
} else {
data = `[data-topic="${clickedItem}"]`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment