Simplified onTagClick handling in ShortUrlsTable

This commit is contained in:
Alejandro Celaya
2020-12-20 09:09:22 +01:00
parent 23da0328ec
commit fa949cde12
5 changed files with 10 additions and 20 deletions

View File

@@ -100,7 +100,7 @@ export const Overview = (
shortUrlsList={shortUrlsList}
selectedServer={selectedServer}
className="mb-0"
refreshList={({ tags }) => tags?.[0] && history.push(`/server/${serverId}/list-short-urls/1?tag=${tags[0]}`)}
onTagClick={(tag) => history.push(`/server/${serverId}/list-short-urls/1?tag=${tag}`)}
/>
</CardBody>
</Card>