From b782eba859d0a91d08dfd39ab41e6952db0c94b7 Mon Sep 17 00:00:00 2001 From: rijkvanzanten Date: Fri, 21 May 2021 21:50:42 -0400 Subject: [PATCH] Fix field name translations failing after sort Fixes #5413 --- .changeset/lemon-horses-hide.md | 5 +++++ app/src/stores/fields.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/lemon-horses-hide.md diff --git a/.changeset/lemon-horses-hide.md b/.changeset/lemon-horses-hide.md new file mode 100644 index 0000000000..71713fc4ae --- /dev/null +++ b/.changeset/lemon-horses-hide.md @@ -0,0 +1,5 @@ +--- +'@directus/app': patch +--- + +Fixed issue where custom field translations would be lost in session when reordering the fields in settings diff --git a/app/src/stores/fields.ts b/app/src/stores/fields.ts index d75c4e7248..2e982e31e4 100644 --- a/app/src/stores/fields.ts +++ b/app/src/stores/fields.ts @@ -216,6 +216,8 @@ export const useFieldsStore = createStore({ return field; }); + + this.translateFields(); } } catch (err) { // reset the changes if the api sync failed