Previously, the Category API assumed a 'json' parameter being passed in request.POST, but adminEditorApiRequest in sefaria.js passes a POST body instead. Therefore, the Category Editor stopped working.
Code Changes
I simply allowed for both options -- 'json' in request.POST or a body -- in case someone wants to edit the category not using the Admin Editor.
Description
Previously, the Category API assumed a 'json' parameter being passed in request.POST, but adminEditorApiRequest in sefaria.js passes a POST body instead. Therefore, the Category Editor stopped working.
Code Changes
I simply allowed for both options -- 'json' in request.POST or a body -- in case someone wants to edit the category not using the Admin Editor.