Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
fix: for now unkown colors just become gray
Browse files Browse the repository at this point in the history
  • Loading branch information
prescientmoon committed Apr 21, 2020
1 parent 804b101 commit 01f01cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Component/Editor/Scene.purs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ createNodeComponent { functionName, project, typeMap, expression, functionData,
fullLocation = generateLocation $ DeepLocation id currentLocation
pinType <- note (MissingType fullLocation) $ Map.lookup fullLocation typeMap
color <- case pinType of
TVarariable name' -> note (MissingColor fullLocation) $ Map.lookup fullLocation typeColors
TVarariable name' -> pure $ RGB 70 70 70 -- note (MissingColor fullLocation) $ Map.lookup fullLocation typeColors
other -> note (UnableToColor other fullLocation) $ typeToColor other
pure $ Tuple currentLocation color
colorMap <- Map.fromFoldable <$> (sequence $ toColor <$> pinLocations)
Expand Down

0 comments on commit 01f01cd

Please sign in to comment.