fix: according to graphite-app's suggestions

This commit is contained in:
UNIDY
2025-04-18 11:05:33 +08:00
committed by Saul-Mirone
parent bd268044b4
commit 914e4baf82
@@ -150,17 +150,12 @@ const alignActionGroup = {
) ?? textAlignConfigs[0];
const update = (textAlign: TextAlign) => {
chain
.pipe(
(ctx, next) => {
ctx.selectedModels.forEach(model => {
ctx.std.host.doc.updateBlock(model, {
textAlign: ctx.textAlign,
});
});
return next();
},
{ selectedModels, textAlign }
)
.pipe((ctx, next) => {
selectedModels.forEach(model => {
ctx.std.host.doc.updateBlock(model, { textAlign });
});
return next();
})
.run();
};