diff --git a/backend/category_api/views.py b/backend/category_api/views.py index 686bb38..ef1cf43 100644 --- a/backend/category_api/views.py +++ b/backend/category_api/views.py @@ -62,10 +62,7 @@ def create(self, request): if serializer.is_valid(): serializer.save() - return Response({ - 'status': True, - 'data': serializer.data, - }, status=status.HTTP_201_CREATED) + return Response(serializer.data, status=status.HTTP_201_CREATED) else: return Response({ 'status': False, diff --git a/frontend/src/components/admin/category/AdminAddCategoryComponent.vue b/frontend/src/components/admin/category/AdminAddCategoryComponent.vue index fe542b2..1500e1c 100644 --- a/frontend/src/components/admin/category/AdminAddCategoryComponent.vue +++ b/frontend/src/components/admin/category/AdminAddCategoryComponent.vue @@ -36,7 +36,7 @@