From 46ca7747f8989ae74f70db2030db48a38b56df6c Mon Sep 17 00:00:00 2001 From: Scott Bishel Date: Fri, 13 Sep 2024 14:21:56 -0600 Subject: [PATCH] set object to accept function, prevent javascript error (#28192) --- webapp/channels/src/components/admin_console/schema_text.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/channels/src/components/admin_console/schema_text.tsx b/webapp/channels/src/components/admin_console/schema_text.tsx index a9bfa185c48..fff3b2f45a9 100644 --- a/webapp/channels/src/components/admin_console/schema_text.tsx +++ b/webapp/channels/src/components/admin_console/schema_text.tsx @@ -11,7 +11,7 @@ import FormattedMarkdownMessage, {CustomRenderer} from 'components/formatted_mar type Props = { isMarkdown?: boolean; text: string | MessageDescriptor | JSX.Element; - textValues?: Record; + textValues?: Record React.ReactNode)>; } const SchemaText = ({