Hi,
The sync still not triggering. Please find my code below with just few modifications.
I tried to debug, the project is not null.
class customCycleResolutionPopup extends CycleResolutionPopup {
async onApplyButtonClick() {
const me = this as any,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
{ selectedResolutions } = me;
let project: any;
if (selectedResolutions.size) {
// apply selected resolutions
selectedResolutions.forEach((resolution: any) => {
const resolutionParameters = me.getResolutionParameters(resolution);
if (!project) {
project = resolutionParameters[0].project;
}
return resolution.resolve(...resolutionParameters);
});
me.continueWithResolutionResult('Resume');
me.doResolve(selectedResolutions);
// calls sync
await (project as typeof ProjectModel).sync();
} else {
me.onCancelButtonClick();
}
}
}