Skip to content

feat: add response.data and fix styling for layout with download zip … #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 16, 2024
Merged

feat: add response.data and fix styling for layout with download zip … #1

merged 1 commit into from
Oct 16, 2024

Conversation

TMSchipper
Copy link

@TMSchipper TMSchipper commented Oct 16, 2024

…button

What does it do?

Add some styling for the layout in the config sync
Add destructurering on data

Why is it needed?

For downloading the zip file and layout.

How to test it?

Download the file

Related issue(s)/PR(s)

Let us know if this is related to any issue/pull request

@@ -56,7 +56,7 @@ export function downloadZip(toggleNotification, formatMessage, post, get) {
return async function(dispatch) {
dispatch(setLoadingState(true));
try {
const { message, base64Data, name } = await get('/config-sync/zip');
const { message, base64Data, name } = (await get('/config-sync/zip')).data;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Wasnt aware of this implementation, and couldn't test on Strapi v5. Thanks!

@ae94 ae94 merged commit a794d30 into The-Real-Established:master Oct 16, 2024
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.

2 participants