Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

For environment reorder, we need to convert id from number to string first.

天舟00aa7cef2b8c
diff --git a/frontend/src/store/modules/environment.ts b/frontend/src/store/modules/environment.ts
index c6ecfd66db..348f096b87 100644
--- a/frontend/src/store/modules/environment.ts
+++ b/frontend/src/store/modules/environment.ts
@@ -118,7 +118,9 @@ const actions = {
const list: any[] = [];
orderedEnvironmentList.forEach((item, index) => {
list.push({
- id: item.id,
+ // Server uses google/jsonapi which expects a string type for the special id field.
+ // Aftewards, server will automatically serialize into int as declared by the EnvironmentPatch interface.
+ id: item.id.toString(),
type: "environmentPatch",
attributes: {
order: index,