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:
2026-04-29 08:29:29 -05:00
parent dd6998232d
commit 77039acff4
12 changed files with 1640 additions and 1300 deletions

View File

@@ -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) {