You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
Uncaught TypeError: Cannot read property 'set' of undefined
at Object.click .adminControls .delete (admin.js:112)
at blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:3775
at Function.Template._withTemplateInstanceFunc (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:3744)
at Blaze.View.<anonymous> (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:3774)
at blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:2617
at Object.Blaze._withCurrentView (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:2271)
at Blaze._DOMRange.<anonymous> (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:2616)
at HTMLSpanElement.<anonymous> (blaze.js?hash=f33d3dfed63a491d24e3aa07ad66c24b5fe8c761:863)
at HTMLDivElement.dispatch (jquery.js?hash=e5fc9cebb2e37c48ddfaf76e0ab0b77cb6ce6e52:4721)
at HTMLDivElement.elemData.handle (jquery.js?hash=e5fc9cebb2e37c48ddfaf76e0ab0b77cb6ce6e52:4389)
Relavent code:
/**
* @summary Delete Provider
* @method
* @param {$.Event} event
*/
'click .adminControls .delete': (event) => {
check(event, $.Event);
if (confirm('Are you sure you want to delete this provicer?')) {
Meteor.call('deleteProvider', Thriver.providers.active.get()._id);
// Close side pane and show whole map
document.querySelector('.mapView').click();
// Unset current provider
Thriver.providers.current.set(null); // <<< Bug happens here
}
},
The text was updated successfully, but these errors were encountered:
When deleting a provider:
Relavent code:
The text was updated successfully, but these errors were encountered: