This code originally held an array of refs. But these refs were unset just before sorting leading to errors. For the fix, I've used a callback ref to add/remove the DOM elements to/from the array in state. This way there's nothing that could possibly mutate just before sort. |
||
|---|---|---|
| .. | ||
| @types | ||
| app-tests | ||
| components/views/dialogs/security | ||
| setup | ||
| test-utils | ||
| unit-tests | ||
| CreateCrossSigning-test.ts | ||
| globalSetup.ts | ||
| jest-mocks.ts | ||
| setupTests.ts | ||
| slowReporter.cjs | ||