fix[flow]: apply new type cast syntax (#36938)
Quick follow-up to https://github.com/react/react/pull/36786, which wasn't rebased onto version of `main` that already had Flow upgraded.
Ruslan Lesiutin committed
Jul 6, 2026 at 18:23 UTC
23def8fd0bd46f8ee56f81190b2bdebe37fd573a
1 file changed
+1
-1
packages/react-devtools-shared/src/devtools/views/Components/TreeContext.js
+1
-1
@@ -536,7 +536,7 @@ function reduceSearchState(store: Store, state: State, action: Action): State {
536
// Jump directly to a specific result (0-based), clamped to range.
537
// This lets users skip past large virtualized lists instead of
538
// stepping through results one at a time.
539
- const targetIndex = (action: ACTION_GO_TO_SEARCH_RESULT).payload;
539
+ const targetIndex = (action as ACTION_GO_TO_SEARCH_RESULT).payload;
540
searchIndex = Math.max(
541
0,
542
Math.min(targetIndex, numPrevSearchResults - 1),