🐛 Fixes image widget update cache (#2151)

This commit is contained in:
Alicia Sykes
2026-05-19 16:17:01 +01:00
parent fce1f7e394
commit 14d755f328

View File

@@ -40,7 +40,9 @@ export default {
},
/* Generate a URL param, to be updated in order to re-fetch image */
updatePathParam() {
return this.updateCount ? `#dashy-update-${this.updateCount}` : '';
if (!this.updateCount || !this.options.imagePath) return '';
const separator = this.options.imagePath.includes('?') ? '&' : '?';
return `${separator}dashy-update=${this.updateCount}`;
},
},
methods: {