fix: unpublish item will not crash the UI anymore (#1016)
This commit is contained in:
@@ -55,7 +55,7 @@ const Status: React.FC<Props> = () => {
|
||||
|
||||
if (collection) {
|
||||
url = `${serverURL}${api}/${collection.slug}/${id}?depth=0&locale=${locale}&fallback-locale=null`;
|
||||
method = 'PATCH';
|
||||
method = 'patch';
|
||||
}
|
||||
if (global) {
|
||||
url = `${serverURL}${api}/globals/${global.slug}?depth=0&locale=${locale}&fallback-locale=null`;
|
||||
|
||||
Reference in New Issue
Block a user