@lavalogic/scoria 0.11.9 → 0.11.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -121,6 +121,9 @@ export class TableContext {
|
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
+
$effect(() => {
|
|
125
|
+
$inspect(this.sortedData, this._currentPageData, this._originalRowIndices);
|
|
126
|
+
});
|
|
124
127
|
if (defaultColumnDefs.remoteFilters) {
|
|
125
128
|
this.remoteFilters = defaultColumnDefs.remoteFilters;
|
|
126
129
|
}
|
|
@@ -686,8 +689,6 @@ export class TableContext {
|
|
|
686
689
|
const originalIndex = this._originalRowIndices.get(item);
|
|
687
690
|
const unsortedIndex = originalIndex ?? index;
|
|
688
691
|
if (originalIndex == null) {
|
|
689
|
-
$inspect(this.sortedData);
|
|
690
|
-
$inspect(this._originalRowIndices);
|
|
691
692
|
throw new Error(`Sorted Data not found in Original Row Indices: original index ${originalIndex}, index ${index}`);
|
|
692
693
|
}
|
|
693
694
|
return this.createRow(item, index, unsortedIndex);
|
|
@@ -1720,7 +1721,6 @@ export class TableContext {
|
|
|
1720
1721
|
// #region private methods
|
|
1721
1722
|
createRow(item, index, unsortedIndex) {
|
|
1722
1723
|
if (!item) {
|
|
1723
|
-
console.log($state.snapshot(this._originalRowIndices));
|
|
1724
1724
|
throw new Error(`No Item was found at index ${index} (unsorted index ${unsortedIndex})`);
|
|
1725
1725
|
}
|
|
1726
1726
|
const row = {
|