mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-06 06:39:15 +01:00
Fix e2e tests breaking because of modern javascript api usage
This commit is contained in:
committed by
René Pfeuffer
parent
0d80599801
commit
8e4d752e31
@@ -77,8 +77,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