Skip to content

Commit

Permalink
added a fix for the edit category page
Browse files Browse the repository at this point in the history
  • Loading branch information
vsumit89 committed Aug 27, 2022
1 parent a20de1e commit be2405f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion studio/src/pages/categories/components/CategoryForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const CategoryForm = ({ onCreate, data = {} }) => {
const siteAddress = useSelector(
({ spaces: { details, selected } }) => details[selected].site_address,
);
const setLoading = onCreate.name === 'onCreate' ? true : false;
const setLoading = data.id ? false : true;
if (data && data.meta_fields) {
if (typeof data.meta_fields !== 'string') {
data.meta_fields = JSON.stringify(data.meta_fields);
Expand Down

0 comments on commit be2405f

Please sign in to comment.