From 8fa0f5d939bc11b2b8055dcb4bb5e02497c29934 Mon Sep 17 00:00:00 2001 From: "Daniel A. Bekan" Date: Thu, 8 Feb 2024 15:08:05 +0100 Subject: [PATCH] don't show conversion functiosn for decimal and localdate --- src/Morphir/Visual/ViewValue.elm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Morphir/Visual/ViewValue.elm b/src/Morphir/Visual/ViewValue.elm index b644cde69..f3fab3c13 100644 --- a/src/Morphir/Visual/ViewValue.elm +++ b/src/Morphir/Visual/ViewValue.elm @@ -265,8 +265,15 @@ viewValueByLanguageFeature config value = Value.uncurryApply fun arg in + case (function, args) of + ( Value.Reference _ ( [ [ "morphir" ], [ "s", "d", "k" ] ], [ [ "decimal" ] ], [ "from", "float" ] ), [ argValue ] ) -> + viewValue config argValue + + ( Value.Reference _ ( [ [ "morphir" ], [ "s", "d", "k" ] ], [ [ "local", "date" ] ], [ "from", "i", "s", "o" ] ), [ argValue ] ) -> + viewValue config argValue - ViewApply.view config definitionBody (viewValue config) function args applyValue + _ -> + ViewApply.view config definitionBody (viewValue config) function args applyValue Value.LetDefinition _ _ _ _ -> let