Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed Oct 1, 2024
1 parent 9c60c87 commit 83da3f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export const ControlPanel = <ApiType extends DefaultControlApi = DefaultControlA
)}
</>
}
compressed={api?.parentApi.parentApi.compressed ?? true}
compressed={api?.parentApi?.parentApi?.compressed ?? true}
>
<>
{blockingError && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const OptionsListControl = ({
const delimiter = useMemo(() => OptionsListStrings.control.getSeparator(field?.type), [field]);

const isCompressed =
api.parentApi.parentApi && api.parentApi.parentApi.compressed
? api.parentApi.parentApi.compressed
api.parentApi?.parentApi && api.parentApi?.parentApi?.compressed
? api.parentApi?.parentApi?.compressed
: true;

const { hasSelections, selectionDisplayNode, selectedOptionsCount } = useMemo(() => {
Expand Down

0 comments on commit 83da3f5

Please sign in to comment.