Remove all explicit and implicit conversions of statusId to number, changed

explicit ones so that they convert them to string
This commit is contained in:
Henry Jameson 2019-01-11 02:40:17 +03:00
parent 1fb9ceb59b
commit ef2585e32b
5 changed files with 15 additions and 13 deletions

View file

@ -270,7 +270,7 @@ const Status = {
},
replyEnter (id, event) {
this.showPreview = true
const targetId = Number(id)
const targetId = String(id)
const statuses = this.$store.state.statuses.allStatuses
if (!this.preview) {
@ -295,7 +295,7 @@ const Status = {
},
watch: {
'highlight': function (id) {
id = Number(id)
id = String(id)
if (this.status.id === id) {
let rect = this.$el.getBoundingClientRect()
if (rect.top < 100) {