diff --git a/packages/bbui/src/Table/Table.svelte b/packages/bbui/src/Table/Table.svelte
index 263a9ce656..c2bf8cb8a9 100644
--- a/packages/bbui/src/Table/Table.svelte
+++ b/packages/bbui/src/Table/Table.svelte
@@ -31,7 +31,6 @@
export let disableSorting = false
export let allowSelectAllRows = false
const dispatch = createEventDispatcher()
-
// Config
const rowHeight = 55
const headerHeight = 36
@@ -219,9 +218,10 @@
if (!allowSelectRows) {
return
}
- if (
- selectedRows.findIndex(selectedRow => selectedRow._id === row._id) === 0
- ) {
+ if (selectedRows.some(selectedRow => selectedRow._id === row._id)) {
+ console.log("hello")
+ console.log(row)
+
selectedRows = selectedRows.filter(
selectedRow => selectedRow._id !== row._id
)
diff --git a/packages/client/src/components/app/DataProvider.svelte b/packages/client/src/components/app/DataProvider.svelte
index 69b2ccfc82..f2f09c2360 100644
--- a/packages/client/src/components/app/DataProvider.svelte
+++ b/packages/client/src/components/app/DataProvider.svelte
@@ -11,7 +11,8 @@
export let limit
export let paginate
- const { styleable, Provider, ActionTypes, API } = getContext("sdk")
+ const { styleable, Provider, ActionTypes, API, rowSelectionStore } =
+ getContext("sdk")
const component = getContext("component")
// We need to manage our lucene query manually as we want to allow components
@@ -139,14 +140,19 @@