add missing check for root URLs length (#53239) (#53251)

(cherry picked from commit 46b7ca12e1)

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-08-03 17:27:53 +02:00
committed by GitHub
co-authored by Will Browne
parent 447a2d4d82
commit 6ba2ecc470
@@ -140,7 +140,7 @@ const packagePluginRunner: TaskRunner<PluginCIOptions> = async ({ signatureType,
if (signatureType) {
manifest.signatureType = signatureType;
}
if (rootUrls) {
if (rootUrls && rootUrls.length > 0) {
rootUrls.forEach(assertRootUrlIsValid);
manifest.rootUrls = rootUrls;
}