mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
Fix error when mongo collstats not supported
This commit is contained in:
parent
8f0b44ade9
commit
739205c192
@ -33,7 +33,7 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
collections: [
|
collections: [
|
||||||
...collections.map((x, index) => ({
|
...collections.map((x, index) => ({
|
||||||
pureName: x.name,
|
pureName: x.name,
|
||||||
tableRowCount: stats[index].count,
|
tableRowCount: stats[index]?.count,
|
||||||
})),
|
})),
|
||||||
...views.map((x, index) => ({
|
...views.map((x, index) => ({
|
||||||
pureName: x.name,
|
pureName: x.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user