Implement unified API standard across backend viewsets and serializers, enhancing error handling and response formatting. Update AccountModelViewSet to standardize CRUD operations with success and error responses. Refactor various viewsets to inherit from AccountModelViewSet, ensuring compliance with the new standard. Improve frontend components to handle API responses consistently and update configuration for better user experience.
This commit is contained in:
@@ -515,7 +515,7 @@ export const createKeywordsPageConfig = (
|
||||
label: 'Seed Keyword',
|
||||
type: 'select',
|
||||
placeholder: 'Select a seed keyword',
|
||||
value: handlers.formData.seed_keyword_id?.toString() || '',
|
||||
value: (handlers.formData.seed_keyword_id && handlers.formData.seed_keyword_id > 0) ? handlers.formData.seed_keyword_id.toString() : '',
|
||||
onChange: (value: any) =>
|
||||
handlers.setFormData({ ...handlers.formData, seed_keyword_id: value ? parseInt(value) : 0 }),
|
||||
required: true,
|
||||
|
||||
Reference in New Issue
Block a user