diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 86662b7a68..e7d6a950fc 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js | |||
@@ -274,9 +274,13 @@ var libtoaster = (function () { | |||
274 | } | 274 | } |
275 | 275 | ||
276 | function _addRmLayer(layerObj, add, doneCb){ | 276 | function _addRmLayer(layerObj, add, doneCb){ |
277 | if (layerObj.xhrLayerUrl === undefined){ | ||
278 | throw("xhrLayerUrl is undefined") | ||
279 | } | ||
280 | |||
277 | if (add === true) { | 281 | if (add === true) { |
278 | /* If adding get the deps for this layer */ | 282 | /* If adding get the deps for this layer */ |
279 | libtoaster.getLayerDepsForProject(layerObj.layerdetailurl, | 283 | libtoaster.getLayerDepsForProject(layerObj.xhrLayerUrl, |
280 | function (layers) { | 284 | function (layers) { |
281 | 285 | ||
282 | /* got result for dependencies */ | 286 | /* got result for dependencies */ |