mirror of
https://github.com/wekan/wekan.git
synced 2025-12-27 12:48:49 +01:00
Move every CustomFields.findOne() to the ReactiveCache
This commit is contained in:
parent
0a7ffe4cb0
commit
54f7361767
4 changed files with 5 additions and 5 deletions
|
|
@ -275,7 +275,7 @@ const CreateCustomFieldPopup = BlazeComponent.extendComponent({
|
|||
'click .js-delete-custom-field': Popup.afterConfirm(
|
||||
'deleteCustomField',
|
||||
function() {
|
||||
const customField = CustomFields.findOne(this._id);
|
||||
const customField = ReactiveCache.getCustomField(this._id);
|
||||
if (customField.boardIds.length > 1) {
|
||||
CustomFields.update(customField._id, {
|
||||
$pull: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue