AykutSarac пре 2 година
родитељ
комит
a668e7ae2f
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/components/CustomNode/styles.tsx

+ 3 - 3
src/components/CustomNode/styles.tsx

@@ -67,14 +67,14 @@ function getKeyColor(theme: DefaultTheme, parent: boolean, type: string, objectK
 
 
 export const StyledKey = styled.span<{
 export const StyledKey = styled.span<{
   objectKey?: boolean;
   objectKey?: boolean;
-  type: string;
-  parent: boolean;
+  parent?: boolean;
+  type?: string;
   value?: string;
   value?: string;
 }>`
 }>`
   display: inline;
   display: inline;
   flex: 1;
   flex: 1;
   font-weight: 500;
   font-weight: 500;
-  color: ${({ theme, type, objectKey = false, parent }) =>
+  color: ${({ theme, type = "null", objectKey = false, parent = false }) =>
     getKeyColor(theme, parent, type, objectKey)};
     getKeyColor(theme, parent, type, objectKey)};
   font-size: ${({ parent }) => parent && "14px"};
   font-size: ${({ parent }) => parent && "14px"};
   overflow: hidden;
   overflow: hidden;