Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion website/public/sqlite-viewer/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,8 @@ async function deleteColumns(table, columns) {

// Get current table info
const tableInfo = await getTableInfo(table);
const remainingColumns = tableInfo.filter(c => !columns.includes(c.name));
const columnsSet = new Set(columns);
const remainingColumns = tableInfo.filter(c => !columnsSet.has(c.name));

if (remainingColumns.length === 0) {
throw new Error('Cannot delete all columns');
Expand Down
Loading