feat: trim for aplhabet sort
This commit is contained in:
@@ -287,10 +287,10 @@ class StationsStore {
|
||||
const response = await languageInstance(language).patch(
|
||||
`/station/${id}`,
|
||||
{
|
||||
name: name || "",
|
||||
system_name: name || "",
|
||||
description: description || "",
|
||||
address: address || "",
|
||||
name: (name || "").trim(),
|
||||
system_name: (name || "").trim(),
|
||||
description: (description || "").trim(),
|
||||
address: (address || "").trim(),
|
||||
...commonDataPayload,
|
||||
}
|
||||
);
|
||||
@@ -415,10 +415,10 @@ class StationsStore {
|
||||
const { name, address } = this.createStationData[language];
|
||||
const description = this.createStationData.common.description;
|
||||
const response = await languageInstance(language).post("/station", {
|
||||
name: name || "",
|
||||
system_name: name || "",
|
||||
description: description || "",
|
||||
address: address || "",
|
||||
name: (name || "").trim(),
|
||||
system_name: (name || "").trim(),
|
||||
description: (description || "").trim(),
|
||||
address: (address || "").trim(),
|
||||
...commonDataPayload,
|
||||
});
|
||||
|
||||
@@ -436,10 +436,10 @@ class StationsStore {
|
||||
const response = await languageInstance(lang).patch(
|
||||
`/station/${stationId}`,
|
||||
{
|
||||
name: name || "",
|
||||
system_name: name || "",
|
||||
description: description || "",
|
||||
address: address || "",
|
||||
name: (name || "").trim(),
|
||||
system_name: (name || "").trim(),
|
||||
description: (description || "").trim(),
|
||||
address: (address || "").trim(),
|
||||
...commonDataPayload,
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user