Skip to content

Conversation

AhyoungRyu
Copy link
Contributor

Description Of Changes

Currently storybook is throwing a runtime error due to the wrong json format access which is caused by my prev PR.

if (storage == null) {
const payload = await sdk.getUIKitConfiguration();
setRemoteConfigs(snakeToCamel(payload.json));
setRemoteConfigs(snakeToCamel(payload.json).configuration.uikitConfigurations);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I shouldn't have removed uikitConfigurations this one but I guess it's removed by mistake 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, the json data format has been changed in the latest version of sendbird/chat; configuration is added in the root level of payload.

Copy link
Contributor

@sravan-s sravan-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THnx

Copy link
Contributor

@sravan-s sravan-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THnx

@AhyoungRyu AhyoungRyu merged commit 6259441 into main Jun 7, 2023
@AhyoungRyu AhyoungRyu deleted the hotfix/uikitconfig-payload-format branch June 7, 2023 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants