fix ui: fix conditional filters modal (#2041)

This commit is contained in:
Delirium 2024-04-05 11:20:09 +02:00 committed by GitHub
parent c1b2e0afe0
commit 6df9458f6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -161,6 +161,7 @@ function FilterModal(props: Props) {
const { matchingCategories, matchingFilters } = getMatchingEntries(
searchQuery,
filterJson(filterJsonObj, excludeFilterKeys, allowedFilterKeys)
);
const isResultEmpty =
(!filterSearchList || Object.keys(filterSearchList).length === 0) &&

View file

@ -49,7 +49,7 @@ function ConditionalRecordingSettings({
</div>
<div className={'mt-2 flex flex-col gap-4'}>
{conditions.map((condition, index) => (
<>
<React.Fragment key={`${index}_${condition.name}`}>
<ConditionSet
key={index}
set={index + 1}
@ -69,7 +69,7 @@ function ConditionalRecordingSettings({
<span>OR</span>
</div>
) : null}
</>
</React.Fragment>
))}
</div>
</div>