From a17ae7e78f440ceb11269d1d11e88502320b3c7b Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 20 Jun 2020 04:51:10 -0500 Subject: [PATCH] fix: literal any --- .../components/types/value.type-renderer.jsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/client/components/types/value.type-renderer.jsx b/src/client/components/types/value.type-renderer.jsx index 0a4231a..c5e0176 100644 --- a/src/client/components/types/value.type-renderer.jsx +++ b/src/client/components/types/value.type-renderer.jsx @@ -55,23 +55,10 @@ const renderValue = (context, type, value) => { { (() => { - const Component = TypeRenderers[type]; + const Component = TypeRenderers['any' === type ? 'string' : type]; return Component ? : null; - // switch (type) { - // case 'bool': - // return ; - // case 'number': - // return ; - // case 'any': - // case 'string': - // return ; - // case 'object': - // return ; - // default: - // return null; - // } })() }