Skip to content
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

Delete locale force on fr #73

Merged
merged 1 commit into from
Dec 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.0.2</version>
<version>1.0.2.1</version>
<authors>
<author>
<name></name>
Expand Down
8 changes: 4 additions & 4 deletions templates/backOffice/default/app/dist/thelia-blocks.es.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions templates/backOffice/default/app/dist/thelia-blocks.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/backOffice/default/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"require": "./dist/thelia-blocks.umd.js"
}
},
"version": "0.1.18",
"version": "0.1.19",
"description": "App to manage TheliaBlocks",
"repository": {
"type": "git",
Expand Down
7 changes: 0 additions & 7 deletions templates/backOffice/default/app/src/hooks/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { initializeWindowConstantsGroupId, setUnsaved } from '../redux/ui';
import { useDispatch, useSelector } from 'react-redux';
import { useMutation, useQuery, useQueryClient } from 'react-query';

import { CURRENT_LOCAL } from '../constants';
import GroupOptions from '../components/GroupOptions';
import { RootState } from '../redux/store';
import { initialState as initialBlocksState } from '../redux/blocks';
Expand Down Expand Up @@ -92,7 +91,6 @@ export function useCreateOrUpdateGroup({ id }: { id?: number }) {
blockGroup: Omit<GroupTypeStore, 'itemBlockGroups'> & {
jsonContent: string;
};
locale: string;
itemBlockGroup?: {
itemId?: itemBlockGroupsType['itemId'];
itemType?: itemBlockGroupsType['itemType'];
Expand All @@ -102,7 +100,6 @@ export function useCreateOrUpdateGroup({ id }: { id?: number }) {
...groupOmitItemBlockGroups,
jsonContent: JSON.stringify(blocks)
},
locale: CURRENT_LOCAL
};

if (id) {
Expand Down Expand Up @@ -212,10 +209,6 @@ export function useCreateImage() {
const queryClient = useQueryClient();
return useMutation<LibraryImage, ErrorType, FormData>(
(data) => {
if (!data.has('locale')) {
data.set('locale', CURRENT_LOCAL);
}

return fetcher(`/open_api/library/image`, {
method: 'POST',
headers: {
Expand Down