docs: fetch tags from correct url
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
074cafdafe
commit
eabf3bec15
@ -9,8 +9,10 @@ const Select = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function getTags() {
|
async function getTags() {
|
||||||
const fetchTags = await fetch('https://s3-eu-west-1.amazonaws.com/daggerdoc.humans-it.com/tags.json').then(result => result.json());
|
const fetchTags = await fetch('/tags.json').then(result => result.json());
|
||||||
setTagsList(fetchTags);
|
if (fetchTags.length > 0) {
|
||||||
|
setTagsList(fetchTags);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getTags()
|
getTags()
|
||||||
|
Reference in New Issue
Block a user