Replace implementation with shallow proxy

This commit is contained in:
Carlos Fernandez 2026-04-25 17:44:09 -04:00
parent 3d73a08ee0
commit 67d8d071a2
4 changed files with 22 additions and 28 deletions

View file

@ -10,7 +10,7 @@
import {
addLinkedItemsDiff,
getScrollTextData,
shallowCopyWithGetters,
createShallowProxy,
updateLinkedItemApps
} from '../../helpers/utils.mjs';
import { ActionsField } from '../fields/actionField.mjs';
@ -165,7 +165,7 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
*/
getRollData(options = {}) {
const data = this.actor?.getRollData() ?? {};
data.item = shallowCopyWithGetters(this);
data.item = createShallowProxy(this);
return data;
}