mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
fix: optional chaining for checking flag in listbox (#1572)
This commit is contained in:
@@ -102,7 +102,7 @@ function ListBoxInline({ options, layout }) {
|
||||
const { translator, keyboardNavigation, themeApi, constraints } = useContext(InstanceContext);
|
||||
|
||||
const { checkboxes = checkboxesOption } = layout || {};
|
||||
const themeSelectionColorsEnabled = flags.isEnabled('PS_22149_THEME_SELECTION_COLORS');
|
||||
const themeSelectionColorsEnabled = flags?.isEnabled('PS_22149_THEME_SELECTION_COLORS');
|
||||
const styles = getStyles({ app, themeApi, theme, components, checkboxes, themeSelectionColorsEnabled });
|
||||
|
||||
const isDirectQuery = isDirectQueryEnabled({ appLayout: app?.layout });
|
||||
|
||||
@@ -99,7 +99,7 @@ export default function ListBoxPopover({
|
||||
const [selectionState] = useState(() => createSelectionState({ selectDisabled }));
|
||||
const { checkboxes = checkboxesOption } = layout || {};
|
||||
|
||||
const themeSelectionColorsEnabled = flags.isEnabled('PS_22149_THEME_SELECTION_COLORS');
|
||||
const themeSelectionColorsEnabled = flags?.isEnabled('PS_22149_THEME_SELECTION_COLORS');
|
||||
const styles = getStyles({ themeApi, theme, components, checkboxes, themeSelectionColorsEnabled });
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user