Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
raheeliftikhar5 committed Dec 21, 2023
commit c975e538bf595e7113ae6a4be5ea77a5c8758d46
3 changes: 2 additions & 1 deletion client/packages/lowcoder/src/comps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const builtInRemoteComps: Omit<RemoteCompInfo, "compName"> = {
packageName: "lowcoder-comps",
};

const uiCompMap: Registry = {
var uiCompMap: Registry = {

// Dashboards

Expand Down Expand Up @@ -1084,6 +1084,7 @@ const uiCompMap: Registry = {
};

export function loadComps() {
if(!uiCompMap) return;
const entries = Object.entries(uiCompMap);
for (const [compType, manifest] of entries) {
registerComp(compType as UICompType, manifest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const QueryNotificationTmpControl = new MultiCompBuilder(

// Execute system notification when triggered manually and without custom notification and query is successful
if (result.success && !hasNoticed) {
messageInstance.success(trans("query.successMessageWithName", { name }), duration);
messageInstance?.success(trans("query.successMessageWithName", { name }), duration);
}
}
}
Expand Down