Browse Source

fix: filter out meta table in parser

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1914/head
Wing-Kam Wong 3 years ago
parent
commit
1c1cb9c9af
  1. 4
      packages/nc-gui/helpers/treeViewDataSerializer.js

4
packages/nc-gui/helpers/treeViewDataSerializer.js

@ -1,3 +1,5 @@
import { isMetaTable } from '@/helpers/xutils'
/* eslint-disable */
/**
*
@ -63,7 +65,7 @@ function dbparser(data, envKey, env) {
for (let i = 0; i < data.length; i++) {
const db = data[i];
const dbKey = `${envKey}.${i}`;
db.tables = db.tables?.filter(t => !isMetaTable(t.table_name))
let json = {};
json = {
type: "db",

Loading…
Cancel
Save