Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

add key to tag list item

ammarahm-ed907d664fa8a3
diff --git a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js
index b7c88f4cd..fe270ea6c 100644
--- a/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js
+++ b/apps/mobile/src/components/ActionSheetComponent/ActionSheetTagsSection.js
@@ -225,7 +225,9 @@ export const ActionSheetTagsSection = ({item, close}) => {
) : null}
{note && note.tags
- ? note.tags.map((item) => <TagItem tag={item} note={note} />)
+ ? note.tags.map((item) => (
+ <TagItem key={item.title} tag={item} note={note} />
+ ))
: null}
<TextInput
style={{
@@ -286,14 +288,13 @@ const TagItem = ({tag, note}) => {
return (
<TouchableOpacity
- key={tag}
onPress={onPress}
style={{
paddingHorizontal: 8,
backgroundColor: colors.shade,
marginLeft: 5,
borderRadius: 100,
- paddingVertical:2
+ paddingVertical: 2,
}}>
<Paragraph size={SIZE.md} color={colors.accent}>
#{tag}