diff --git a/src/containers/panels/registry/RegistryRecords.js b/src/containers/panels/registry/RegistryRecords.js
index 46cdc42..9300d5c 100644
--- a/src/containers/panels/registry/RegistryRecords.js
+++ b/src/containers/panels/registry/RegistryRecords.js
@@ -11,8 +11,8 @@ import Button from '@material-ui/core/Button';
import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core/TableRow';
import TableBody from '@material-ui/core/TableBody';
-import TableFooter from '@material-ui/core/TableFooter';
import TablePagination from '@material-ui/core/TablePagination';
+import { Paper, TableContainer, } from '@material-ui/core';
import WNS_RECORDS from '../../../gql/wns_records.graphql';
@@ -108,86 +108,78 @@ const RegistryRecords = ({ type }) => {
};
return (
-
-
-
- Type
- Registered Names
- Version
- Display Name
- Created
- Package
-
-
-
-
- {records.sort(sorter)
- .map((record) => {
- const { id, names, createTime, attributes: { type, name: displayName, fileName, version, description, service, package: pkg } } = record;
+
+
+
+
+
+ Type
+ Registered Names
+ Version
+ Display Name
+ Created
+ Package
+
+
+
+
+ {records.sort(sorter).map((record) => {
+ const { id, names, createTime, attributes: { type, name: displayName, fileName, version, description, service, package: pkg } } = record;
- let pkgLink;
- let appLinks;
+ let pkgLink;
+ let appLinks;
- if (pkg) {
- pkgLink = ();
- }
+ if (pkg) {
+ pkgLink = ();
+ }
- if (type === 'lrn:app') {
- appLinks = (
- <>
- {(names || []).map(lrn =>
-
- )}
- >
+ if (type === 'lrn:app') {
+ appLinks = (
+ <>
+ {(names || []).map(lrn =>
+
+ )}
+ >
+ );
+ }
+
+ return (
+
+ {type}
+
+ {appLinks || (names || []).map(name => {name}
)}
+
+ {version}
+ {displayName || service || fileName || description}
+ {moment.utc(createTime).fromNow()}
+ {pkgLink}
+
+
+
+
);
- }
-
- return (
-
- {type}
-
- {appLinks || (names || []).map(name => {name}
)}
-
-
- {version}
-
-
- {displayName || service || fileName || description}
-
-
- {moment.utc(createTime).fromNow()}
-
-
- {pkgLink}
-
-
-
-
-
- );
- }
- )}
-
-
-
-
-
-
-
+ })}
+
+
+
+
+
);
};
diff --git a/src/resolvers.js b/src/resolvers.js
index a5643d4..b14adfa 100644
--- a/src/resolvers.js
+++ b/src/resolvers.js
@@ -46,7 +46,7 @@ export const createResolvers = config => {
wns_records: async (_, { attributes }) => {
log('WNS records...');
- const {limit, offset, ...queryAttributes } = attributes;
+ const {limit, offset, ...queryAttributes } = attributes || {};
const data = await registry.queryRecords(queryAttributes, false, false, limit, offset);
return {