mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 00:02:03 +00:00
fix: fix csv preview for storage renderer
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user