mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
[WEB-1607[ fix: state dropwdown default state. (#4816)
This commit is contained in:
parent
d1bfed950a
commit
fd9f0fb17c
@ -77,7 +77,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {
|
||||
const { fetchProjectStates, getProjectStates, getStateById } = useProjectState();
|
||||
const statesList = getProjectStates(projectId);
|
||||
const defaultState = statesList?.find((state) => state.default);
|
||||
const stateValue = value ?? (showDefaultState ? defaultState?.id : undefined);
|
||||
const stateValue = !!value ? value : showDefaultState ? defaultState?.id : undefined;
|
||||
|
||||
const options = statesList?.map((state) => ({
|
||||
value: state.id,
|
||||
|
Loading…
Reference in New Issue
Block a user