We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 218be58 commit 2c4b5cfCopy full SHA for 2c4b5cf
v2/pink-sb/src/lib/spreadsheet/Root.svelte
@@ -61,7 +61,6 @@
61
62
let dragManager: DragManager;
63
const dispatch = createEventDispatcher();
64
- const columnCache = new Map<string, number>();
65
66
$: if (columns) {
67
// needs to be initialized
@@ -168,11 +167,7 @@
168
167
}
169
170
function updateCells(columnId: string, newWidth: number) {
171
- let index = columnCache.get(columnId);
172
- if (index === undefined) {
173
- index = columns.findIndex((col) => col.id === columnId);
174
- if (index !== -1) columnCache.set(columnId, index);
175
- }
+ let index = columns.findIndex((col) => col.id === columnId);
176
if (index === -1) return;
177
178
const col = columns[index];
0 commit comments