utility functions, trat view as table

This commit is contained in:
Jan Prochazka
2020-06-18 20:39:35 +02:00
parent 10d8a40d1c
commit 0d755fa8fc
5 changed files with 46 additions and 7 deletions

View File

@@ -122,7 +122,7 @@ export function useDatabaseInfo(args) {
return useCore(databaseInfoLoader, args);
}
async function getDbCore(args, objectTypeField = undefined) {
export async function getDbCore(args, objectTypeField = undefined) {
const db = await getDatabaseInfo(args);
if (!db) return null;
return db[objectTypeField || args.objectTypeField].find(