Skip to content

Commit 2b68d59

Browse files
author
FalkWolsky
committed
Enabling display of Version Number for Remote Components
1 parent d602bd4 commit 2b68d59

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export const CompName = (props: Iprops) => {
8383

8484
const items: EditPopoverItemType[] = [];
8585

86+
// Falk: TODO - Implement upgrade for individual Version functionality
8687
const handleUpgrade = async () => {
8788
if (upgrading) {
8889
return;

client/packages/lowcoder/src/comps/comps/remoteComp/loaders.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ import {
1010
async function npmLoader(
1111
remoteInfo: RemoteCompInfo
1212
): Promise<CompConstructor | null> {
13-
const { packageName, packageVersion = "latest", compName } = remoteInfo;
13+
14+
console.log("remoteInfo: ", remoteInfo);
15+
16+
// Falk: removed "packageVersion = "latest" as default value fir packageVersion - to ensure no automatic version jumping.
17+
18+
const { packageName, packageVersion, compName } = remoteInfo;
1419
const entry = `${NPM_PLUGIN_ASSETS_BASE_URL}/${packageName}@${packageVersion}/index.js`;
1520
// const entry = `../../../../../public/package/index.js`;
1621
// console.log("Entry", entry);
1722
try {
1823
const module = await import(/* webpackIgnore: true */ entry);
19-
// console.log("Entry 1", module);
2024
const comp = module.default?.[compName];
2125
if (!comp) {
2226
throw new Error(trans("npm.compNotFound", { compName }));

0 commit comments

Comments
 (0)