Skip to content

Commit

Permalink
chore(db-schema-dialog): if table size is less than .1mb don't show size
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmoysrt committed Dec 23, 2024
1 parent 2d2033c commit bb7bacf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ export default {
computed: {
autocompleteOptions() {
return Object.keys(this.tableSchemas).map(x => ({
label: `${x} (${this.bytesToMB(
this.tableSchemas[x].size.total_size
)}MB)`,
label:
this.tableSchemas[x].size.total_size > 0.01
? `${x} (${this.bytesToMB(this.tableSchemas[x].size.total_size)}MB)`
: x,
value: x
}));
},
Expand Down

0 comments on commit bb7bacf

Please sign in to comment.