Skip to content

Commit 4aa6e13

Browse files
fix(UNT-T28476): waveform.map is not a function
1 parent d9266af commit 4aa6e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Waveform/Waveform.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ export const Waveform = forwardRef<IWaveformRef, IWaveform>((props, ref) => {
525525
ref={scrollRef}
526526
style={styles.scrollContainer}
527527
scrollEnabled={mode === 'live'}>
528-
{waveform.map((amplitude, indexCandle) => (
528+
{waveform?.map?.((amplitude, indexCandle) => (
529529
<WaveformCandle
530530
key={indexCandle}
531531
index={indexCandle}

0 commit comments

Comments
 (0)