Update dependencies

This commit is contained in:
2025-03-28 22:43:04 +01:00
parent 709165bab0
commit eea2eac109
8 changed files with 1129 additions and 1122 deletions

View File

@@ -102,7 +102,7 @@ export default function Attachment() {
if (error !== null) {
return (
<div className="w-full h-full overflow-hidden flex items-center justify-center">
<div>Wystąpił błąd: {error.value}</div>
<div>Wystąpił błąd: {error.status === 422 ? error.value.message : error.value}</div>
</div>
);
}

View File

@@ -124,7 +124,7 @@ function PieceRow(props: PieceRow.Props) {
if (error !== null) {
return (
<TableRow>
<TableCell colSpan={4}>Wystąpił błąd: {error.value}</TableCell>
<TableCell colSpan={4}>Wystąpił błąd: {error.status === 422 ? error.value.message : error.value}</TableCell>
</TableRow>
);
}

View File

@@ -410,7 +410,7 @@ function EntryDialogPieceRow(props: EntryDialogPieceRow.Props) {
if (error !== null) {
return (
<TableRow>
<TableCell colSpan={2}>Wystąpił błąd: {error.value}</TableCell>
<TableCell colSpan={2}>Wystąpił błąd: {error.status === 422 ? error.value.message : error.value}</TableCell>
</TableRow>
);
}

View File

@@ -112,7 +112,7 @@ function RepertoireRow(props: RepertoireRow.Props) {
if (error !== null) {
return (
<TableRow>
<TableCell colSpan={4}>Wystąpił błąd: {error.value}</TableCell>
<TableCell colSpan={4}>Wystąpił błąd: {error.status === 422 ? error.value.message : error.value}</TableCell>
</TableRow>
);
}