mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
fix(core): Restore community nodes installation (#5180)
🐛 Fix check for community nodes not installing
This commit is contained in:
parent
e839a81cc5
commit
c0268f572f
|
@ -12,7 +12,7 @@ export async function findInstalledPackage(packageName: string): Promise<Install
|
||||||
|
|
||||||
export async function isPackageInstalled(packageName: string): Promise<boolean> {
|
export async function isPackageInstalled(packageName: string): Promise<boolean> {
|
||||||
const installedPackage = await findInstalledPackage(packageName);
|
const installedPackage = await findInstalledPackage(packageName);
|
||||||
return installedPackage !== undefined;
|
return installedPackage !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getAllInstalledPackages(): Promise<InstalledPackages[]> {
|
export async function getAllInstalledPackages(): Promise<InstalledPackages[]> {
|
||||||
|
|
Loading…
Reference in a new issue