Skip to content

Commit 34236e9

Browse files
author
Artem
committed
fix validation error on UI side + rollback BE changes
1 parent 02fabf7 commit 34236e9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

redisinsight/api/src/modules/ssh/models/ssh-options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ export class SshOptions {
6767
})
6868
@Expose()
6969
@IsString({ always: true })
70+
@IsNotEmpty()
7071
@IsOptional()
7172
passphrase?: string;
7273
}

redisinsight/ui/src/utils/comparisons/diff.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const getFormUpdates = (obj1: UnknownObject = {}, obj2: UnknownObject = {
2323
obj1,
2424
(result: UnknownObject, value, key) => {
2525
if (isObject(value)) {
26-
const diff = getFormUpdates(value, obj2[key])
26+
const diff = getFormUpdates(value, obj2[key] || {})
2727

2828
if (Object.keys(diff).length) {
2929
result[key] = diff

0 commit comments

Comments
 (0)