mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
[WEB-1607[ fix: state dropwdown default state. (#4816)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user