Skip to content

Commit 3662a80

Browse files
author
Egor Didenko
committed
fix(cloud-image-editor): adjusted activityParams
1 parent f3dbfe2 commit 3662a80

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/abstract/UploaderPublicApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,11 +351,11 @@ export class UploaderPublicApi {
351351

352352
setCurrentActivity = <T extends ActivityType>(
353353
activityType: T,
354-
...params: T extends keyof ActivityParamsMap
354+
params: T extends keyof ActivityParamsMap
355355
? [ActivityParamsMap[T]]
356356
: T extends RegisteredActivityType
357357
? [undefined?]
358-
: [any?]
358+
: [any?],
359359
) => {
360360
if (this._ctx.hasBlockInCtx((b) => b.activityType === activityType)) {
361361
this._ctx.set$({

src/blocks/CloudImageEditorActivity/CloudImageEditorActivity.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export class CloudImageEditorActivity extends UploaderBlock {
1717

1818
override get activityParams(): ActivityParams {
1919
const params = super.activityParams;
20+
2021
if ('internalId' in params) {
2122
return params;
2223
}

0 commit comments

Comments
 (0)