Fix display of save button in tracked object details pane (#15946)

This commit is contained in:
Josh Hawkins 2025-01-11 15:23:52 -06:00 committed by GitHub
parent 173b7aa308
commit ef6952e3ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -543,8 +543,8 @@ function ObjectDetailsTab({
)}
</div>
)}
{(config?.cameras[search.camera].genai.enabled && search.end_time) ||
(!config?.cameras[search.camera].genai.enabled && (
{((config?.cameras[search.camera].genai.enabled && search.end_time) ||
!config?.cameras[search.camera].genai.enabled) && (
<Button
variant="select"
aria-label="Save"
@ -552,7 +552,7 @@ function ObjectDetailsTab({
>
Save
</Button>
))}
)}
</div>
</div>
</div>