type mismatch between dashboard and detail panel WholesaleStore
- The dashboard uses a simplified WholesaleStore interface while StoreDetailPanel
- expects the full Prisma WholesaleStore type with all fields.
- Added type cast to 'any' when passing selectedStore to StoreDetailPanel since
- the API returns the full object with all required fields, but the dashboard's
- interface doesn't declare them all (to keep the component simpler).
- Alternative would be to align both interfaces, but that would require updating
- the entire dashboard component to use the full Prisma type.
11f9eacView on GitHub →