File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed
redisinsight/ui/src/pages
browser/components/key-details-add-items/add-stream-entity
slowLog/components/Actions Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ const AddStreamEntries = (props: Props) => {
45
45
return
46
46
}
47
47
48
- if ( ! lastEntry . id ) return
48
+ if ( ! lastEntry ?. id ) {
49
+ setEntryIdError ( '' )
50
+ return
51
+ }
49
52
50
53
if ( entryID === '*' ) {
51
54
setEntryIdError ( '' )
Original file line number Diff line number Diff line change @@ -120,7 +120,6 @@ const Actions = (props: Props) => {
120
120
/>
121
121
</ EuiFlexItem >
122
122
< EuiFlexItem >
123
-
124
123
< EuiPopover
125
124
ownFocus
126
125
anchorPosition = "downRight"
@@ -153,14 +152,19 @@ const Actions = (props: Props) => {
153
152
closePopover = { closePopoverClear }
154
153
panelPaddingSize = "m"
155
154
button = { (
156
- < EuiButtonIcon
157
- iconType = "eraser"
158
- className = { styles . icon }
159
- color = "primary"
160
- aria-label = "Clear Slow Log"
161
- onClick = { ( ) => showClearPopover ( ) }
162
- data-testid = "clear-btn"
163
- />
155
+ < EuiToolTip
156
+ position = "left"
157
+ anchorClassName = { styles . icon }
158
+ content = "Clear Slow Log"
159
+ >
160
+ < EuiButtonIcon
161
+ iconType = "eraser"
162
+ color = "primary"
163
+ aria-label = "Clear Slow Log"
164
+ onClick = { ( ) => showClearPopover ( ) }
165
+ data-testid = "clear-btn"
166
+ />
167
+ </ EuiToolTip >
164
168
) }
165
169
>
166
170
{ ToolTipContent }
You can’t perform that action at this time.
0 commit comments