mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-15 05:05:42 +01:00
Fix bug
This commit is contained in:
parent
7f5a69f4d8
commit
3c38a867b4
1 changed files with 5 additions and 1 deletions
|
@ -91,7 +91,11 @@ export default prop => ({
|
||||||
Vue.set(this.$_ns_target, 'reactionCounts', {});
|
Vue.set(this.$_ns_target, 'reactionCounts', {});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$_ns_target.reactionCounts[reaction] = (this.$_ns_target.reactionCounts[reaction] || 0) + 1;
|
if (this.$_ns_target.reactionCounts[reaction] == null) {
|
||||||
|
Vue.set(this.$_ns_target.reactionCounts, reaction, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$_ns_target.reactionCounts[reaction]++;
|
||||||
|
|
||||||
if (body.userId == this.$store.state.i.id) {
|
if (body.userId == this.$store.state.i.id) {
|
||||||
Vue.set(this.$_ns_target, 'myReaction', reaction);
|
Vue.set(this.$_ns_target, 'myReaction', reaction);
|
||||||
|
|
Loading…
Reference in a new issue