Clarify comment for conditional rendering of Tag

pull/5248/head
Suven-p 1 month ago
parent 6832c791c4
commit 9c50d709f1

@ -118,7 +118,7 @@
</MonitorListFilterDropdown> </MonitorListFilterDropdown>
<MonitorListFilterDropdown :filterActive="filterState.tags?.length > 0"> <MonitorListFilterDropdown :filterActive="filterState.tags?.length > 0">
<template #status> <template #status>
<!-- Prevent rendering Tag component if invalid tag is passed from query params --> <!-- Prevent rendering Tag component if tagsList has not been fetched or filterState contains invalid tag -->
<Tag <Tag
v-if="filterState.tags?.length === 1 && tagsList.find(tag => tag.id === filterState.tags[0])" v-if="filterState.tags?.length === 1 && tagsList.find(tag => tag.id === filterState.tags[0])"
:item="tagsList.find(tag => tag.id === filterState.tags[0])" :item="tagsList.find(tag => tag.id === filterState.tags[0])"

Loading…
Cancel
Save