forked from github/plane
fix: project members settings flickering (#3894)
This commit is contained in:
parent
b535d8a23c
commit
b03f6a81e2
@ -49,14 +49,14 @@ export const MemberSelect: React.FC<Props> = observer((props) => {
|
||||
<CustomSearchSelect
|
||||
value={value}
|
||||
label={
|
||||
<div className="flex items-center gap-2">
|
||||
<div className="flex items-center gap-2 h-5">
|
||||
{selectedOption && <Avatar name={selectedOption.member?.display_name} src={selectedOption.member?.avatar} />}
|
||||
{selectedOption ? (
|
||||
selectedOption.member?.display_name
|
||||
) : (
|
||||
<div className="flex items-center gap-2">
|
||||
<Ban className="h-3.5 w-3.5 rotate-90 text-custom-sidebar-text-400" />
|
||||
<span className="py-0.5 text-sm text-custom-sidebar-text-400">None</span>
|
||||
<span className="text-sm text-custom-sidebar-text-400">None</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
@ -63,11 +63,14 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
|
||||
});
|
||||
|
||||
await updateProject(workspaceSlug.toString(), projectId.toString(), {
|
||||
default_assignee: formData.default_assignee === "none" ? null : formData.default_assignee,
|
||||
project_lead: formData.project_lead === "none" ? null : formData.project_lead,
|
||||
default_assignee:
|
||||
formData.default_assignee === "none"
|
||||
? null
|
||||
: formData.default_assignee ?? currentProjectDetails?.default_assignee,
|
||||
project_lead:
|
||||
formData.project_lead === "none" ? null : formData.project_lead ?? currentProjectDetails?.project_lead,
|
||||
})
|
||||
.then(() => {
|
||||
fetchProjectDetails(workspaceSlug.toString(), projectId.toString());
|
||||
setToast({
|
||||
title: "Success",
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
|
Loading…
Reference in New Issue
Block a user