fix report status error
This commit is contained in:
@ -12,15 +12,15 @@ const { report } = Astro.props;
|
|||||||
<div class="flex justify-center items-center">
|
<div class="flex justify-center items-center">
|
||||||
<div class="mt-12 grid card w-11/12 xl:w-2/3 2xl:w-1/2 p-6 shadow-lg">
|
<div class="mt-12 grid card w-11/12 xl:w-2/3 2xl:w-1/2 p-6 shadow-lg">
|
||||||
{
|
{
|
||||||
report.status.status === null ? (
|
report.status?.status == null ? (
|
||||||
<p>Dein Report wird in kürze bearbeitet</p>
|
<p>Dein Report wird in kürze bearbeitet</p>
|
||||||
) : report.status.status === 'open' ? (
|
) : report.status?.status === 'open' ? (
|
||||||
<p>Dein Report befindet sich in Bearbeitung</p>
|
<p>Dein Report befindet sich in Bearbeitung</p>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<p>Dein Report wurde bearbeitet</p>
|
<p>Dein Report wurde bearbeitet</p>
|
||||||
<Textarea
|
<Textarea
|
||||||
value={report.status.statement}
|
value={report.status?.statement}
|
||||||
label="Antwort vom Admin Team (optional)"
|
label="Antwort vom Admin Team (optional)"
|
||||||
rows={5}
|
rows={5}
|
||||||
dynamicWidth
|
dynamicWidth
|
||||||
|
Reference in New Issue
Block a user