fix: Only expose registerAction instead of ActionManager in the API
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user