Merge branch 'main' into next

This commit is contained in:
katherinehhh 2024-12-01 22:30:02 +08:00
commit 188950c7a8

View File

@ -50,11 +50,13 @@ export const ReadPretty = observer(
return; return;
} }
const content = currentOptions.map((option, index) => ( const content =
<Tag key={index} color={option[fieldNames.color]} icon={option.icon}> field.value &&
{option[fieldNames.label]} currentOptions.map((option, index) => (
</Tag> <Tag key={index} color={option[fieldNames.color]} icon={option.icon}>
)); {option[fieldNames.label]}
</Tag>
));
setContent(content); setContent(content);
setLoading(false); setLoading(false);
}, [ }, [