Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2573620

Browse files
fixed bug on meeting controller drawer feature
1 parent 65a368b commit 2573620

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

‎client/packages/lowcoder/src/comps/hooks/hookComp.tsx‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const HookMap: HookCompMapRawType = {
9999
lodashJsLib: LodashJsLib,
100100
dayJsLib: DayJsLib,
101101
momentJsLib: DayJsLib, // old components use this hook
102-
utils: UtilsComp,
102+
utils: UtilsComp,
103103
message: MessageComp,
104104
toast: ToastComp,
105105
localStorage: LocalStorageComp,
@@ -109,7 +109,7 @@ const HookMap: HookCompMapRawType = {
109109
screenInfo: ScreenInfoHookComp,
110110
urlParams: UrlParamsHookComp,
111111
drawer: DrawerComp,
112-
theme: ThemeComp,
112+
theme: ThemeComp,
113113
};
114114

115115
export const HookTmpComp = withTypeAndChildren(HookMap, "title", {
@@ -124,6 +124,7 @@ function SelectHookView(props: {
124124
}) {
125125
const editorState = useContext(EditorContext);
126126
const selectedComp = editorState.selectedComp();
127+
127128
// Select the modal and its subcomponents on the left to display the modal
128129
useEffect(() => {
129130
if (
@@ -135,7 +136,13 @@ function SelectHookView(props: {
135136
editorState.selectSource !== "leftPanel")
136137
) {
137138
return;
138-
} else if ((selectedComp as any).children.comp === props.comp) {
139+
} else if (
140+
(selectedComp as any).children.comp === props.comp
141+
) {
142+
if ((selectedComp as any).children.comp?.remoteInfo?.isRemote){
143+
return;
144+
}
145+
139146
// Select the current modal to display the modal
140147
!props.comp.children.visible.getView().value &&
141148
props.comp.children.visible.dispatch(
@@ -177,7 +184,7 @@ export class HookComp extends HookTmpComp {
177184
}
178185

179186
override getView() {
180-
const view = this.children.comp.getView();
187+
const view = this.children?.comp?.getView();
181188
if (!view) {
182189
// most hook components have no view
183190
return view;

‎client/packages/lowcoder/src/comps/hooks/hookCompTypes.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ const HookCompConfig: Record<
4545
category: "ui",
4646
singleton: false,
4747
},
48-
// meeting: {
49-
// category: "ui",
50-
// singleton: false,
51-
// },
48+
meeting: {
49+
category: "ui",
50+
singleton: false,
51+
},
5252
lodashJsLib: {
5353
category: "hide",
5454
},

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /