Lib: Update SubstitutionCard promises
This commit is contained in:
@ -113,10 +113,10 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#await Promise.all([data.graphics, data.drivers]) then [graphics, drivers]}
|
{#await data.drivers then drivers}
|
||||||
<Card
|
<Card
|
||||||
imgsrc={get_by_value<Driver>(drivers, "id", substitution?.substitute ?? "")?.headshot_url ??
|
imgsrc={get_by_value(drivers, "id", substitution?.substitute ?? "")?.headshot_url ??
|
||||||
get_driver_headshot_template(graphics)}
|
get_driver_headshot_template(data.graphics)}
|
||||||
imgid="headshot_preview"
|
imgid="headshot_preview"
|
||||||
width="w-full sm:w-auto"
|
width="w-full sm:w-auto"
|
||||||
imgwidth={DRIVER_HEADSHOT_WIDTH}
|
imgwidth={DRIVER_HEADSHOT_WIDTH}
|
||||||
|
Reference in New Issue
Block a user