From cb7147da0c6fe3f8fb1932e5cf51ea5aa1c58b66 Mon Sep 17 00:00:00 2001 From: chenluli Date: Tue, 12 Mar 2024 20:05:02 +0800 Subject: [PATCH] fix(ava-react/ntv): fix ntv default text --- packages/ava-react/src/NarrativeTextVis/phrases/Phrase.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ava-react/src/NarrativeTextVis/phrases/Phrase.tsx b/packages/ava-react/src/NarrativeTextVis/phrases/Phrase.tsx index 10fd6cc3..ea237842 100644 --- a/packages/ava-react/src/NarrativeTextVis/phrases/Phrase.tsx +++ b/packages/ava-react/src/NarrativeTextVis/phrases/Phrase.tsx @@ -188,5 +188,5 @@ export const Phrase: React.FC = ({ return <>{renderPhraseByDescriptor({ spec: phrase, descriptor, themeStyles, events })}; } - return !isEmpty(events) ? defaultText : defaultText; + return !isEmpty(events) ? {defaultText} : defaultText; };