mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
fix cloudflare r2 adapter range requests
This commit is contained in:
@@ -124,7 +124,8 @@ const Icons = {
|
||||
};
|
||||
|
||||
const AdapterIcon = ({ type }: { type: string }) => {
|
||||
const Icon = Icons[type];
|
||||
// find icon whose name starts with type
|
||||
const Icon = Object.entries(Icons).find(([key]) => type.startsWith(key))?.[1];
|
||||
if (!Icon) return null;
|
||||
return <Icon />;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user