diff options
Diffstat (limited to 'demo/components/like-button.js')
-rw-r--r-- | demo/components/like-button.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/components/like-button.js b/demo/components/like-button.js index 1c9649a..5c9b1a5 100644 --- a/demo/components/like-button.js +++ b/demo/components/like-button.js @@ -3,11 +3,11 @@ export default { props: ['messageID'], methods: { - likeObjects(objects) { + likeObjects(objects, messageID=this.messageID) { return objects.filter(o=> 'like' in o && 'timestamp' in o && - o.like == this.messageID && + o.like == messageID && typeof o.timestamp == 'number') }, |