Created
January 19, 2022 00:38
-
-
Save NickDeckerDevs/e42f715cfa5e98d3aa78ca8b4c0255ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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