Преглед изворни кода

update

tags/Baseline_180220205_Frontend
MSI\derek пре 7 месеци
родитељ
комит
1d37b45088
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      src/components/CreateProject/CreateProjectWrapper.tsx

+ 1
- 1
src/components/CreateProject/CreateProjectWrapper.tsx Прегледај датотеку

@@ -74,7 +74,7 @@ const CreateProjectWrapper: React.FC<Props> = async (props) => {
var filteredTeamLeads = teamId ? teamLeads.filter(
(teamLead) => teamLead.teamId === teamId,
) : teamLeads
if (userStaff.id && userStaff.id == 1) {
if (userStaff?.id !== null && userStaff?.id == 1) {
filteredTeamLeads = teamLeads.filter(
(teamLead) => teamLead.teamId === teamId || teamLead.team == "ST",
)


Loading…
Откажи
Сачувај