fix: remove the toast name for zones will use the friendly_name instead

This commit is contained in:
ZhaiSoul 2025-11-05 13:58:48 +00:00
parent 54f228fb6f
commit ca901f492f

View File

@ -179,7 +179,7 @@ export default function PolygonItem({
if (res.status === 200) { if (res.status === 200) {
toast.success( toast.success(
t("masksAndZones.form.polygonDrawing.delete.success", { t("masksAndZones.form.polygonDrawing.delete.success", {
name: polygon?.name, name: polygon?.friendly_name ?? polygon?.name,
}), }),
{ {
position: "top-center", position: "top-center",