Clarify comment for conditional rendering of Tag

This commit is contained in:
Suven-p 2024-10-26 11:34:27 +05:45
parent 6832c791c4
commit 9c50d709f1

View file

@ -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])"