fix
This commit is contained in:
parent
e039cba2a3
commit
0f99ba192d
|
@ -66,8 +66,7 @@ const canGetInfo = computed(() => !props.reaction.match(/@\w/) && props.reaction
|
||||||
async function toggleReaction() {
|
async function toggleReaction() {
|
||||||
if (!canToggle.value) return;
|
if (!canToggle.value) return;
|
||||||
|
|
||||||
const oldReaction = props.note.myReactions.includes(props.reaction) ? props.reaction : null;
|
const oldReaction = props.note.myReactions?.includes(props.reaction) ? props.reaction : null;
|
||||||
console.log(oldReaction);
|
|
||||||
if (oldReaction) {
|
if (oldReaction) {
|
||||||
const confirm = await os.confirm({
|
const confirm = await os.confirm({
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
|
|
Loading…
Reference in a new issue