fix: fix csv preview for storage renderer

This commit is contained in:
Ruben Fiszel
2024-05-31 14:23:27 +02:00
parent 5c5b475261
commit 326446e5ce
@@ -79,12 +79,21 @@
async function mountGrid() {
if (eGui) {
const res = await HelpersService.loadParquetPreview({
workspace: $workspaceStore!,
path: s3resource,
limit: 0,
storage: storage
})
const csv = s3resource.endsWith('.csv')
const res = csv
? await HelpersService.loadCsvPreview({
workspace: $workspaceStore!,
path: s3resource,
limit: 0,
storage: storage
})
: await HelpersService.loadParquetPreview({
workspace: $workspaceStore!,
path: s3resource,
limit: 0,
storage: storage
})
createGrid(
eGui,