AdvancedResourceTemplate: javascript error


when trying to edit a media, Omeka-S sent me an error:

Uncaught TypeError: Cannot read properties of undefined (reading ‘length’)
at Object.initializeSelector (global.js?v=3.1.1:259:29)
at HTMLDocument. (resource-form.js?v=
at e (jquery.min.js:2:30005)
at t (jquery.min.js:2:30307)

and I can’t see metadata from media. If I disable the module, then it works fine. Anyone meet this case? Thanks.