mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-07 08:02:09 +01:00
Fix e2e tests breaking because of modern javascript api usage
This commit is contained in:
@@ -75,8 +75,9 @@ const SearchBox = React.forwardRef<
|
||||
if (indexToInsert === -1) {
|
||||
indexToInsert = 0;
|
||||
}
|
||||
// @ts-ignore toSpliced is part of modern browser api
|
||||
return prev.toSpliced(indexToInsert, 0, ref);
|
||||
const result = prev.slice();
|
||||
result.splice(indexToInsert, 0, ref);
|
||||
return result;
|
||||
}),
|
||||
[]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user