Skip to content

Commit 3d14627

Browse files
committed
#RI-2911 - fix error when there is no last entry
1 parent 970625a commit 3d14627

File tree

1 file changed

+4
-1
lines changed
  • redisinsight/ui/src/pages/browser/components/key-details-add-items/add-stream-entity

1 file changed

+4
-1
lines changed

redisinsight/ui/src/pages/browser/components/key-details-add-items/add-stream-entity/AddStreamEntries.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ const AddStreamEntries = (props: Props) => {
4545
return
4646
}
4747

48-
if (!lastEntry.id) return
48+
if (!lastEntry?.id) {
49+
setEntryIdError('')
50+
return
51+
}
4952

5053
if (entryID === '*') {
5154
setEntryIdError('')

0 commit comments

Comments
 (0)