Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Stephens committed Dec 4, 2024
1 parent a144060 commit 88abf6c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { DataTypes } from '@/interfaces/dataTypes';
import { IModelMetadata, IPropertyMetadata, isEntityMetadata, isEntityReferencePropertyMetadata, isPropertiesArray } from '@/interfaces/metadata';
import { camelcaseDotNotation, getNumberFormat } from '@/utils/string';
import { toCamelCase } from '../string';
import React from 'react';

export const getIconByDataType = (dataType: string): IconType => {
switch (dataType) {
Expand Down Expand Up @@ -45,7 +46,7 @@ export const getIconByPropertyMetadata = (metadata: IPropertyMetadata) => {
if (metadata.dataType === DataTypes.objectReference) return JsonOutlined(null);

var iconType = getIconByDataType(metadata.dataType);
if (iconType) return ShaIcon({ iconName: iconType });
if (iconType) return <ShaIcon iconName={iconType} />;
return null;
};

Expand Down

0 comments on commit 88abf6c

Please sign in to comment.