Compare commits

..

3 Commits

Author SHA1 Message Date
6b2888383c 10.2.1 2018-10-09 05:36:39 +09:00
3c38a867b4 Fix bug 2018-10-09 05:35:40 +09:00
7f5a69f4d8 Fix bug 2018-10-09 05:31:26 +09:00
3 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,8 @@
{
"name": "misskey",
"author": "syuilo <i@syuilo.com>",
"version": "10.2.0",
"clientVersion": "1.0.10362",
"version": "10.2.1",
"clientVersion": "1.0.10366",
"codename": "nighthike",
"main": "./built/index.js",
"private": true,

View File

@ -91,7 +91,11 @@ export default prop => ({
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) {
Vue.set(this.$_ns_target, 'myReaction', reaction);

View File

@ -17,7 +17,7 @@ const summarize = (note: any): string => {
summary += note.text ? note.text : '';
// ファイルが添付されているとき
if (note.files.length != 0) {
if ((note.files || []).length != 0) {
summary += ` (${note.files.length}つのファイル)`;
}