Skip to content

Commit

Permalink
fix issue 1442
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoosten committed Sep 15, 2023
1 parent 0f8df96 commit 55840d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Ampersand/Output/ToJSON/Views.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ newtype Views = Views [View] deriving (Generic, Show)
data View = View
{ vwJSONname :: !Text,
vwJSONlabel :: !Text,
vwJSONconceptId :: !Text,
vwJSONconceptName :: !Text,
vwJSONisDefault :: !Bool,
vwJSONsegments :: ![Segment]
}
Expand All @@ -39,7 +39,7 @@ instance JSON ViewDef View where
vwJSONlabel = case vdlabel vd of
Nothing -> text1ToText . tName $ vd
Just (Label txt) -> txt,
vwJSONconceptId = text1ToText . idWithoutType' . vdcpt $ vd,
vwJSONconceptName = text1ToText . idWithoutType' . vdcpt $ vd,
vwJSONisDefault = vdIsDefault vd,
vwJSONsegments = fmap (fromAmpersand env fSpec) . vdats $ vd
}

0 comments on commit 55840d5

Please sign in to comment.