datajunction-ui 0.0.1-rc.16 → 0.0.1-rc.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datajunction-ui",
3
- "version": "0.0.1-rc.16",
3
+ "version": "0.0.1-rc.17",
4
4
  "description": "DataJunction Metrics Platform UI",
5
5
  "module": "src/index.tsx",
6
6
  "repository": {
@@ -20,7 +20,7 @@ export default function NodeColumnTab({ node, djClient }) {
20
20
  </span>
21
21
  </td>
22
22
  <td>
23
- {col.dimension ? (
23
+ {col.dimension !== undefined && col.dimension !== null ? (
24
24
  <>
25
25
  <a href={`/nodes/${col.dimension.name}`}>{col.dimension.name}</a>
26
26
  <ClientCodePopover code={col.clientCode} />
@@ -141,7 +141,7 @@ export const DataJunctionAPI = {
141
141
  columns: async function (node) {
142
142
  return await Promise.all(
143
143
  node.columns.map(async col => {
144
- if (col.dimension !== null) {
144
+ if (col.dimension) {
145
145
  col.clientCode = await (
146
146
  await fetch(
147
147
  DJ_URL +