fix: cannot change the state if it's the only state in group (#1358)
* fixed loohole with groups and added tooltip * muted text when dropdown disabled
This commit is contained in:
parent
3f22ccc528
commit
5914240290
3 changed files with 29 additions and 21 deletions
|
|
@ -98,6 +98,7 @@ const StatesSettings: NextPage = () => {
|
|||
<div className="divide-y divide-brand-base rounded-[10px] border border-brand-base">
|
||||
{key === activeGroup && (
|
||||
<CreateUpdateStateInline
|
||||
groupLength={orderedStateGroups[key].length}
|
||||
onClose={() => {
|
||||
setActiveGroup(null);
|
||||
setSelectedState(null);
|
||||
|
|
@ -128,6 +129,7 @@ const StatesSettings: NextPage = () => {
|
|||
setActiveGroup(null);
|
||||
setSelectedState(null);
|
||||
}}
|
||||
groupLength={orderedStateGroups[key].length}
|
||||
data={
|
||||
statesList?.find((state) => state.id === selectedState) ?? null
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue