Skip to content

Commit 6e7098e

Browse files
committed
handle breaking change in icebird
1 parent 37bb5db commit 6e7098e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/AvroView/AvroView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { avroData, avroMetadata } from 'icebird'
1+
import { avroMetadata, avroRead } from 'icebird'
22
import { useEffect, useState } from 'react'
33
import type { FileSource } from '../../lib/sources/types.js'
44
import { parseFileSize } from '../../lib/utils.js'
@@ -38,7 +38,7 @@ export default function AvroView({ source, setError }: ViewerProps) {
3838
const fileSize = parseFileSize(res.headers) ?? buffer.byteLength
3939
const reader = { view: new DataView(buffer), offset: 0 }
4040
const { metadata, syncMarker } = avroMetadata(reader)
41-
const json = avroData({ reader, metadata, syncMarker })
41+
const json = avroRead({ reader, metadata, syncMarker })
4242
setError(undefined)
4343
setContent({ fileSize })
4444
setJson(json)

0 commit comments

Comments
 (0)