mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-15 03:02:49 +03:00
limit retry stop to 404 only
This commit is contained in:
@@ -55,7 +55,10 @@ export default function DetailActionsMenu({
|
||||
// currently, audio event ids are not saved in review items
|
||||
const { data: reviewItem } = useSWR<ReviewSegment>(
|
||||
search.data?.type === "audio" ? null : [`review/event/${search.id}`],
|
||||
{ shouldRetryOnError: false },
|
||||
{
|
||||
shouldRetryOnError: (err) =>
|
||||
!(axios.isAxiosError(err) && err.response?.status === 404),
|
||||
},
|
||||
);
|
||||
|
||||
const handleDebugReplay = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user