feat(blog): enhance blog data handling with normalization and improved image management
This commit is contained in:
@@ -15,7 +15,7 @@ function Title({ onTagChange }) {
|
||||
limit: 100,
|
||||
};
|
||||
const response = await request.getBlogTags(params);
|
||||
setTags(response.data || []);
|
||||
setTags(response?.data?.data || []);
|
||||
} catch (error) {
|
||||
console.error("Error fetching tags:", error);
|
||||
setTags([]);
|
||||
|
||||
Reference in New Issue
Block a user