mirror of https://github.com/portainer/portainer
fix(extensions): use an empty object instead of a null value when registering extension (#1750)
parent
27dcd708a6
commit
a72ffe4188
|
@ -12,7 +12,7 @@ function ExtensionManagerFactory($q, PluginService, SystemService, ExtensionServ
|
||||||
var endpointAPIVersion = parseFloat(data.ApiVersion);
|
var endpointAPIVersion = parseFloat(data.ApiVersion);
|
||||||
|
|
||||||
return $q.all([
|
return $q.all([
|
||||||
endpointAPIVersion >= 1.25 ? initStoridgeExtension(): null
|
endpointAPIVersion >= 1.25 ? initStoridgeExtension(): {}
|
||||||
]);
|
]);
|
||||||
})
|
})
|
||||||
.then(function success(data) {
|
.then(function success(data) {
|
||||||
|
|
Loading…
Reference in New Issue