Move every CustomFields.findOne() to the ReactiveCache

This commit is contained in:
Martin Filser 2023-02-03 23:58:38 +01:00
parent 0a7ffe4cb0
commit 54f7361767
4 changed files with 5 additions and 5 deletions

View file

@ -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: {