Skip to content

Fix Site Defaults save failing with "axios is not defined"#623

Merged
duncanmcclean merged 1 commit into
7.xfrom
site-defaults-axios
Jul 2, 2026
Merged

Fix Site Defaults save failing with "axios is not defined"#623
duncanmcclean merged 1 commit into
7.xfrom
site-defaults-axios

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request fixes an issue where saving the Site Defaults configuration in the Control Panel failed with ReferenceError: axios is not defined.

This was happening because the save action in ConfigureModal.vue referenced the bare global axios, which isn't defined in the component's scope.

This PR fixes it by using the $axios instance already destructured from the app's global properties, matching how the GET request in the same component works.

The save action referenced the bare global `axios`, which isn't defined
in scope. Use the destructured `$axios` instance instead, matching the
GET request in the same component.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@duncanmcclean duncanmcclean merged commit e52e01f into 7.x Jul 2, 2026
17 checks passed
@duncanmcclean duncanmcclean deleted the site-defaults-axios branch July 2, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant