Skip to content

Commit fa14470

Browse files
fixed issue where adding event handlers inside list/grid adds multiple event handlers
1 parent 45830f5 commit fa14470

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

client/packages/lowcoder/src/components/ThemeSettingsSelector.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,6 @@ export default function ThemeSettingsSelector(props: ColorConfigProps) {
428428
size="small"
429429
checked={showComponentLoaders}
430430
onChange={(value) => {
431-
debugger;
432431
setComponentLoaders(value)
433432
configChange({ themeSettingKey, showComponentLoadingIndicators: value});
434433
}}

client/packages/lowcoder/src/comps/comps/tableComp/tableUtils.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ export function genSelectionParams(
465465
filterData: RecordType[],
466466
selection: string
467467
): Record<string, unknown> | undefined {
468-
const idx = filterData.findIndex((row) => row[OB_ROW_ORI_INDEX] === selection);
469-
if (idx < 0) {
468+
const idx = filterData?.findIndex((row) => row[OB_ROW_ORI_INDEX] === selection);
469+
if (!Boolean(filterData) || idx < 0) {
470470
return undefined;
471471
}
472472
const currentRow = filterData[idx];

client/packages/lowcoder/src/comps/generators/withSelectedMultiContext.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ export function withSelectedMultiContext<TCtor extends MultiCompConstructor>(
8787
|| isCustomAction<LazyCompReadyAction>(action, "LazyCompReady")
8888
|| isCustomAction<ModuleReadyAction>(action, "moduleReady")
8989
) && action.path[1] === SELECTED_KEY) {
90-
if (action.path[0] === MAP_KEY && action.path[1] === SELECTED_KEY) {
91-
action.path[1] = this.selection;
92-
comp = super.reduce(action);
93-
}
9490
// broadcast
9591
const newAction = {
9692
...action,

0 commit comments

Comments
 (0)