Skip to content

Commit

Permalink
Update ui/lib/kv/addon/components/kv-data-fields.js
Browse files Browse the repository at this point in the history
Co-authored-by: claire bontempo <[email protected]>
  • Loading branch information
Monkeychip and hellobontempo authored Nov 7, 2024
1 parent abcd62a commit 112cd6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/lib/kv/addon/components/kv-data-fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class KvDataFields extends Component {
}

get viewportMargin() {
if (!this.args.secret || !this.args.secret.secretData) return 10;
if (!this.args?.secret?.secretData) return 10;
const jsonHeight = Object.keys(this.args.secret.secretData).length;
// return the higher of: 10 or the approimated number of lines in the json. jsonHeight only includes the first level of keys, so for objects
// with lots of nested values, it will undercount.
Expand Down

0 comments on commit 112cd6d

Please sign in to comment.