Skip to content

Commit

Permalink
point formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
huboneo committed May 11, 2020
1 parent 820c4d5 commit 10be5a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/browser/modules/Stream/CypherFrame/relatable-view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import React, { useCallback, useMemo } from 'react'
import Relatable from '@relate-by-ui/relatable'
import { get, head, map, memoize, slice } from 'lodash-es'
import { entries, get, head, join, map, memoize, slice } from 'lodash-es'
import { Icon } from 'semantic-ui-react'
import { connect } from 'react-redux'

Expand Down Expand Up @@ -108,7 +108,10 @@ function CypherCell({ cell }) {
}

if (isPoint(mapped)) {
return `point(${JSON.stringify(mapped)})`
return `point(${join(
map(entries(mapped), pair => join(pair, ': ')),
', '
)})`
}

if (mapped && typeof mapped === 'object') {
Expand Down

0 comments on commit 10be5a3

Please sign in to comment.