Skip to content

Commit 2a6f2dc

Browse files
committed
Merge branch 'main' into e2e/bugfix/3532-fix-unstable-e2e
2 parents a824ae1 + ce09072 commit 2a6f2dc

File tree

6 files changed

+17
-12
lines changed

6 files changed

+17
-12
lines changed

redisinsight/ui/src/components/inline-item-editor/InlineItemEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const InlineItemEditor = (props: Props) => {
140140
const isDisabledApply = (): boolean =>
141141
!!(isLoading || isError || isDisabled || (disableEmpty && !value.length))
142142

143-
const ApplyBtn = () => (
143+
const ApplyBtn = (
144144
<EuiToolTip
145145
anchorClassName={styles.tooltip}
146146
position="bottom"
@@ -218,7 +218,7 @@ const InlineItemEditor = (props: Props) => {
218218
isDisabled={isLoading}
219219
data-testid="cancel-btn"
220220
/>
221-
<ApplyBtn />
221+
{ApplyBtn}
222222
</div>
223223
</EuiForm>
224224
</EuiFocusTrap>

redisinsight/ui/src/components/query-card/QueryCardCliResult/QueryCardCliResult.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ const QueryCardCliResult = (props: Props) => {
3333
)
3434
}
3535

36-
export default QueryCardCliResult
36+
export default React.memo(QueryCardCliResult)

redisinsight/ui/src/pages/browser/components/auto-refresh/AutoRefresh.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,4 @@ const AutoRefresh = ({
244244
)
245245
}
246246

247-
export default AutoRefresh
247+
export default React.memo(AutoRefresh)

redisinsight/ui/src/pages/browser/components/key-list/KeyList.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ const KeyList = forwardRef((props: Props, ref) => {
209209
{
210210
id: 'ttl',
211211
label: 'TTL',
212-
absoluteWidth: 70,
213-
minWidth: 70,
212+
absoluteWidth: 86,
213+
minWidth: 86,
214214
truncateText: true,
215215
alignment: TableCellAlignment.Right,
216216
render: (cellData: number, { nameString: name }: GetKeyInfoResponse) => {
@@ -247,8 +247,8 @@ const KeyList = forwardRef((props: Props, ref) => {
247247
{
248248
id: 'size',
249249
label: 'Size',
250-
absoluteWidth: 100,
251-
minWidth: 100,
250+
absoluteWidth: 84,
251+
minWidth: 84,
252252
alignment: TableCellAlignment.Right,
253253
textAlignment: TableCellTextAlignment.Right,
254254
render: (cellData: number, { nameString: name }: GetKeyInfoResponse) => {

redisinsight/ui/src/pages/browser/components/key-tree/KeyTreeDelimiter/KeyTreeDelimiter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ const KeyTreeDelimiter = ({ loading }: Props) => {
9393
)
9494
}
9595

96-
export default KeyTreeDelimiter
96+
export default React.memo(KeyTreeDelimiter)

redisinsight/ui/src/pages/workbench/components/wb-view/WBViewWrapper.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,16 @@ const WBViewWrapper = () => {
145145
) => {
146146
const { loading, batchSize } = state
147147
const isNewCommand = () => !commandId
148-
const commandsForExecuting = splitMonacoValuePerLines(removeMonacoComments(commandInit))
149-
.map((command) => removeMonacoComments(decode(command).trim()))
148+
const commandsForExecuting = without(
149+
splitMonacoValuePerLines(commandInit)
150+
.map((command) => removeMonacoComments(decode(command).trim())),
151+
''
152+
)
153+
150154
const [commands, ...rest] = chunk(commandsForExecuting, batchSize > 1 ? batchSize : 1)
151155
const multiCommands = rest.map((command) => getMultiCommands(command))
152-
if (!commands.length || loading) {
156+
157+
if (!commands?.length || loading) {
153158
setMultiCommands(multiCommands)
154159
return
155160
}

0 commit comments

Comments
 (0)