fix: unpublish item will not crash the UI anymore (#1016)

This commit is contained in:
Hung Vu
2022-08-29 12:39:46 -07:00
committed by GitHub
parent 3736755a12
commit 0586d7aa7d

View File

@@ -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`;