The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(DataTable): handle empty data array without crashing
Steven Enamakel226d1e31fca0
diff --git a/app/src/components/ui/DataTable.test.tsx b/app/src/components/ui/DataTable.test.tsxindex 43bf3c4683..e875e0d81e 100644--- a/app/src/components/ui/DataTable.test.tsx+++ b/app/src/components/ui/DataTable.test.tsx@@ -119,7 +119,9 @@ describe('<DataTable />', () => {expect(trigger).toHaveTextContent('Filter (1)');await userEvent.click(trigger);- await userEvent.click(await screen.findByText('ClawHub'));+ // Scoped to the menu: 'ClawHub' is also a cell value in the table body.+ const menu = await screen.findByRole('menu');+ await userEvent.click(within(menu).getByText('ClawHub'));expect(onChange).toHaveBeenCalledTimes(1);expect([...onChange.mock.calls[0][0]]).toEqual(['built-in', 'ClawHub']);