Skip to content

Commit 237e480

Browse files
committed
fix(umbraco): shallow clone modifiers before modifying
1 parent 04ce48b commit 237e480

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/runtime/providers/umbraco.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ interface UmbracoImageOptions {
2929

3030
export default defineProvider<UmbracoImageOptions>({
3131
getImage: (src, {
32-
modifiers,
32+
modifiers: _modifiers,
3333
baseURL = '',
3434
}) => {
35+
const modifiers = { ..._modifiers }
3536
// Map standard Nuxt Image fit values to ImageSharp resize modes
3637
if (modifiers.fit === 'contain') {
3738
modifiers.fit = 'max'

0 commit comments

Comments
 (0)