remove motion search range check from the UI

This commit is contained in:
Josh Hawkins
2026-10-18 13:14:54 -05:00
parent babe15b9e8
commit dd08ebe2a9
2 changed files with 0 additions and 12 deletions
@@ -56,7 +56,6 @@
"noROI": "Please draw a region of interest", "noROI": "Please draw a region of interest",
"noTimeRange": "Please select a time range", "noTimeRange": "Please select a time range",
"invalidTimeRange": "End time must be after start time", "invalidTimeRange": "End time must be after start time",
"timeRangeTooLong": "Time range must be {{hours}} hours or less",
"alreadyRunning": "You already have a motion search running. Wait for it to finish or cancel it.", "alreadyRunning": "You already have a motion search running. Wait for it to finish or cancel it.",
"tooManySearches": "Too many motion searches are running. Try again when one finishes.", "tooManySearches": "Too many motion searches are running. Try again when one finishes.",
"searchFailed": "Search failed: {{message}}", "searchFailed": "Search failed: {{message}}",
@@ -90,7 +90,6 @@ type MotionSearchViewProps = {
}; };
const DEFAULT_EXPORT_WINDOW_SECONDS = 60; const DEFAULT_EXPORT_WINDOW_SECONDS = 60;
const MAX_SEARCH_RANGE_HOURS = 48;
const NO_REVIEW_EVENTS: ReviewSegment[] = []; const NO_REVIEW_EVENTS: ReviewSegment[] = [];
export default function MotionSearchView({ export default function MotionSearchView({
@@ -861,16 +860,6 @@ export default function MotionSearchView({
return; return;
} }
if (
searchRange.before - searchRange.after >
MAX_SEARCH_RANGE_HOURS * 3600
) {
toast.error(
t("errors.timeRangeTooLong", { hours: MAX_SEARCH_RANGE_HOURS }),
);
return;
}
setIsSearching(true); setIsSearching(true);
setSearchResults([]); setSearchResults([]);
setHasSearched(true); setHasSearched(true);