Skip to content

Commit

Permalink
set object to accept function, prevent javascript error (mattermost#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
sbishel authored Sep 13, 2024
1 parent 190d4c4 commit 46ca774
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import FormattedMarkdownMessage, {CustomRenderer} from 'components/formatted_mar
type Props = {
isMarkdown?: boolean;
text: string | MessageDescriptor | JSX.Element;
textValues?: Record<string, React.ReactNode>;
textValues?: Record<string, string | (() => React.ReactNode)>;
}

const SchemaText = ({
Expand Down

0 comments on commit 46ca774

Please sign in to comment.