mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 15:44:59 +00:00
Merge pull request #11685 from strapi/fix/single-type-delete
Fix single type locale delete
This commit is contained in:
commit
8bb0251042
@ -163,7 +163,7 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
||||
try {
|
||||
trackUsageRef.current('willDeleteEntry', trackerProperty);
|
||||
|
||||
const { data } = await axiosInstance.delete(getRequestUrl(`${slug}`));
|
||||
const { data } = await axiosInstance.delete(getRequestUrl(`${slug}${searchToSend}`));
|
||||
|
||||
toggleNotification({
|
||||
type: 'success',
|
||||
@ -179,7 +179,7 @@ const SingleTypeFormWrapper = ({ allLayoutData, children, slug }) => {
|
||||
return Promise.reject(err);
|
||||
}
|
||||
},
|
||||
[slug, toggleNotification]
|
||||
[slug, toggleNotification, searchToSend]
|
||||
);
|
||||
|
||||
const onDeleteSucceeded = useCallback(() => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user