Place longer text in description instead of title
This commit is contained in:
parent
1464c92093
commit
2964beb998
@ -167,11 +167,11 @@ export default function () {
|
|||||||
|
|
||||||
if (!itemReq.ok) {
|
if (!itemReq.ok) {
|
||||||
toast({
|
toast({
|
||||||
description: ((await itemReq.json()) as { error: string }).error,
|
description: "Failed to load item with id " + itemId,
|
||||||
duration: 10000,
|
duration: 10000,
|
||||||
isClosable: true,
|
isClosable: true,
|
||||||
status: "error",
|
status: "error",
|
||||||
title: "Failed to load item with id " + itemId,
|
title: ((await itemReq.json()) as { error: string }).error,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const itemData: { [k: string]: any } = await itemReq.json();
|
const itemData: { [k: string]: any } = await itemReq.json();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user