Skip to content

Commit 31aa55a

Browse files
fix tests
1 parent 90ce6d2 commit 31aa55a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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)