fix: Only expose registerAction instead of ActionManager in the API

This commit is contained in:
Daniel J. Geiger
2023-11-03 19:12:46 -05:00
parent daf305af34
commit c456c1e713
4 changed files with 9 additions and 16 deletions
+3
View File
@@ -484,6 +484,9 @@ export const useSubtype = (
const prep = api.addSubtype(record, subtypePrepFn);
if (prep) {
addSubtypeMethods(record.subtype, prep.methods);
if (prep.actions) {
prep.actions.forEach((action) => api.registerAction(action));
}
}
}
}, [api, record, subtypePrepFn]);