File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
client/packages/lowcoder/src Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -10,13 +10,17 @@ import {
1010async 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 } ) ) ;
You can’t perform that action at this time.
0 commit comments