aboutsummaryrefslogtreecommitdiff
path: root/src/components/gallery/gallery.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2021-04-25 13:24:08 +0300
committerHenry Jameson <me@hjkos.com>2021-04-25 13:24:08 +0300
commit905b9771ec74c4c79e5795676ea9c3946e586ce9 (patch)
treee75e4ea9f2f5eaab32af5c8f31231acdf9f8fd62 /src/components/gallery/gallery.js
parentfca885e665094b8efcbc65a3f4ec9ba31679c4c2 (diff)
stop using vue.set
Diffstat (limited to 'src/components/gallery/gallery.js')
-rw-r--r--src/components/gallery/gallery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/gallery/gallery.js b/src/components/gallery/gallery.js
index f856fd0a..d13d98f9 100644
--- a/src/components/gallery/gallery.js
+++ b/src/components/gallery/gallery.js
@@ -34,7 +34,7 @@ const Gallery = {
},
methods: {
onNaturalSizeLoad (id, size) {
- this.$set(this.sizes, id, size)
+ this.sizes[id] = size
},
rowStyle (itemsPerRow) {
return { 'padding-bottom': `${(100 / (itemsPerRow + 0.6))}%` }