refactor: remove externalSource references from various components for consistency

This commit is contained in:
mlogclub
2026-04-28 11:11:16 +08:00
parent cf63b75590
commit 75afe60d4b
8 changed files with 4 additions and 28 deletions
+1 -3
View File
@@ -268,12 +268,10 @@ export const useKefuChatStore = create<KefuChatStore>((set, get) => {
return
}
if (widgetConfig.channelId || widgetConfig.externalSource) {
if (widgetConfig.channelId) {
setKefuWidgetConfig({
...readKefuWidgetConfig(),
channelId: widgetConfig.channelId || readKefuWidgetConfig().channelId,
externalSource:
widgetConfig.externalSource || readKefuWidgetConfig().externalSource,
})
}