Skip to content

Commit 30ab45c

Browse files
fix tests
1 parent 90ce6d2 commit 30ab45c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

client/packages/lowcoder/src/comps/controls/styleControl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ export function styleControl<T extends readonly SingleColorConfig[]>(colorConfig
293293
childrenMap as ToConstructor<{ [K in Names<T>]: ColorControl }>,
294294
(props) => {
295295
// const x = useContext(CompNameContext);
296+
console.log(JSON.stringify(props));
296297
const theme = useContext(ThemeContext);
297298
const bgColor = useContext(BackgroundColorContext);
298299
return calcColors(props as ColorMap, colorConfigs, theme?.theme, bgColor);

client/packages/lowcoder/src/comps/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const builtInRemoteComps: Omit<RemoteCompInfo, "compName"> = {
144144
packageName: "lowcoder-comps",
145145
};
146146

147-
const uiCompMap: Registry = {
147+
var uiCompMap: Registry = {
148148

149149
// Dashboards
150150

@@ -1084,6 +1084,7 @@ const uiCompMap: Registry = {
10841084
};
10851085

10861086
export function loadComps() {
1087+
if(!uiCompMap) return;
10871088
const entries = Object.entries(uiCompMap);
10881089
for (const [compType, manifest] of entries) {
10891090
registerComp(compType as UICompType, manifest);

client/packages/lowcoder/src/comps/queries/queryComp/queryNotificationControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const QueryNotificationTmpControl = new MultiCompBuilder(
131131

132132
// Execute system notification when triggered manually and without custom notification and query is successful
133133
if (result.success && !hasNoticed) {
134-
messageInstance.success(trans("query.successMessageWithName", { name }), duration);
134+
messageInstance?.success(trans("query.successMessageWithName", { name }), duration);
135135
}
136136
}
137137
}

0 commit comments

Comments
 (0)