This is an automated email from the ASF dual-hosted git repository. shuai pushed a commit to branch feat/1.5.1/table in repository https://gitbox.apache.org/repos/asf/answer.git
commit dfd1a8d25da514c0fc1af9c52c7154185261450b Author: shuai <[email protected]> AuthorDate: Tue May 20 14:30:33 2025 +0800 fix: admin gravatar base URL is empty should use placehoder for default value --- ui/src/pages/Admin/SettingsUsers/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/Admin/SettingsUsers/index.tsx b/ui/src/pages/Admin/SettingsUsers/index.tsx index e2714790..e0980980 100644 --- a/ui/src/pages/Admin/SettingsUsers/index.tsx +++ b/ui/src/pages/Admin/SettingsUsers/index.tsx @@ -94,6 +94,9 @@ const Index: FC = () => { }, gravatar_base_url: { 'ui:widget': 'input', + 'ui:options': { + placeholder: 'https://www.gravatar.com/avatar/', + }, }, profile_editable: { 'ui:widget': 'legend', @@ -186,7 +189,7 @@ const Index: FC = () => { v = 'system'; } if (k === 'gravatar_base_url' && !v) { - v = 'https://www.gravatar.com/avatar/'; + v = ''; } formMeta[k] = { ...formData[k], value: v }; });
