refactor: simplify column creation in dashboard components and improve error handling
- Removed derived error state in manifest page. - Updated column creation logic in various general catalog components to streamline permissions handling. - Enhanced type safety in selected item logic across components. - Improved search functionality and state management in identifiers, concepts, and other catalog pages.
This commit is contained in:
@@ -81,7 +81,7 @@
|
||||
loading = true;
|
||||
error = null;
|
||||
try {
|
||||
const response = await countriesApi.list(1, pageSize, searchQuery);
|
||||
const response = await countriesApi.list(1, pageSize, searchQuery as any);
|
||||
if (!response.error && response.data) {
|
||||
allItems = response.data.items;
|
||||
currentPage = 1;
|
||||
@@ -108,7 +108,7 @@
|
||||
error = null;
|
||||
|
||||
try {
|
||||
const response = await countriesApi.list(currentPage + 1, pageSize, searchQuery);
|
||||
const response = await countriesApi.list(currentPage + 1, pageSize, searchQuery as any);
|
||||
if (response.error) {
|
||||
console.error('📊 [Page] Error en loadMore:', response.error, 'Status:', response.status);
|
||||
if (response.status === 401 || response.status === 403) {
|
||||
|
||||
Reference in New Issue
Block a user