Skip to content

Commit

Permalink
chore: fix setParquetURL when addBasePath isn't given
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsMeBrianD committed Feb 5, 2025
1 parent 3672cbe commit 038a170
Show file tree
Hide file tree
Showing 3 changed files with 339 additions and 339 deletions.
3 changes: 2 additions & 1 deletion packages/lib/universal-sql/src/client-duckdb/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function emptyDbFs(targetGlob) {
* @param {{ append?: boolean, addBasePath?: (path: string) => string }} [opts]
* @returns {Promise<void>}
*/
export async function setParquetURLs(urls, { append, addBasePath } = {}) {
export async function setParquetURLs(urls, { append, addBasePath = (x) => x } = {}) {
if (!db) await initDB();
if (!append) await emptyDbFs('*');
if (import.meta.env.VITE_EVIDENCE_DEBUG) console.debug('Updating Parquet URLs');
Expand Down Expand Up @@ -141,6 +141,7 @@ export async function setParquetURLs(urls, { append, addBasePath } = {}) {
resolveTables();
} catch (e) {
rejectTables(e);
console.error(`Error encountered while updating Parquet URLs`, e);
throw e;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import plugin from 'tailwindcss/plugin.js';


/** @param {import('../../schemas/types.js').Themes} themes */
export const createVarsForColors = (themes) => {
/**
Expand Down
Loading

0 comments on commit 038a170

Please sign in to comment.