chore: improve changeDojoRoot #1522

Merged
Sainan merged 3 commits from sortid into main 2025-04-10 07:15:28 -07:00
Showing only changes of commit b15ca46541 - Show all commits

View File

@ -147,7 +147,7 @@ export const getDojoClient = async (
if (!componentId || dojoComponent._id.equals(componentId)) { if (!componentId || dojoComponent._id.equals(componentId)) {
const clientComponent: IDojoComponentClient = { const clientComponent: IDojoComponentClient = {
id: toOid(dojoComponent._id), id: toOid(dojoComponent._id),
SortId: toOid(dojoComponent.SortId ? dojoComponent.SortId : dojoComponent._id), // always providing a SortId so decos don't need repositioning to reparent SortId: toOid(dojoComponent.SortId ?? dojoComponent._id), // always providing a SortId so decos don't need repositioning to reparent
pf: dojoComponent.pf, pf: dojoComponent.pf,
ppf: dojoComponent.ppf, ppf: dojoComponent.ppf,
Name: dojoComponent.Name, Name: dojoComponent.Name,