We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2bafc03 commit 8cd9ec5Copy full SHA for 8cd9ec5
1 file changed
resources/js/components/assets/Browser/Browser.vue
@@ -1095,9 +1095,14 @@ export default {
1095
}
1096
1097
if (nextStrategy === 'overwrite') {
1098
- const originalPreview = context.conflict?.existing?.preview;
1099
- const originalThumbnail = context.conflict?.existing?.thumbnail;
1100
- Statamic.$callbacks.call('bustAndReloadImageCaches', [originalPreview, originalThumbnail]);
+ const urls = [
+ context.conflict?.existing?.preview,
+ context.conflict?.existing?.thumbnail,
1101
+ ].filter(Boolean);
1102
+
1103
+ if (urls.length) {
1104
+ Statamic.$callbacks.call('bustAndReloadImageCaches', urls);
1105
+ }
1106
1107
1108
0 commit comments