mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-03 04:31:46 +02:00
fix: reference error
This commit is contained in:
@@ -49,9 +49,9 @@ const ColorItem = ({value, format}) => {
|
||||
|
||||
const onPress = () => {
|
||||
if (selected) {
|
||||
formatSelection(type, null);
|
||||
formatSelection(format, null);
|
||||
} else {
|
||||
formatSelection(execCommands[type](value));
|
||||
formatSelection(execCommands[format](value));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user