mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-12 22:42:13 +02:00
I've modified `useConnectorEditPage.ts` to correctly save all Slack connector settings. - I updated `editConnectorSchema` in `types.ts` to include a `config` field in `EditConnectorFormValues`. - I replaced the `handleSaveChanges` function in `useConnectorEditPage.ts` with a version that reads the complete Slack configuration from `formData.config` (populated by `EditSlackConnectorConfigForm` and channel selection). - This ensures that settings like `slack_selected_channel_ids`, `slack_membership_filter_type`, and other Slack-specific options are included in the payload to the backend and persisted correctly. - I updated post-save logic to correctly reset the form's `config` field for Slack connectors. This addresses the issue where changes to Slack connector configurations, other than just the bot token, were not being saved. |
||
|---|---|---|
| .. | ||
| chat | ||
| editConnector | ||
| sidebar | ||
| theme | ||
| ui | ||
| document-viewer.tsx | ||
| Footer.tsx | ||
| json-metadata-viewer.tsx | ||
| Logo.tsx | ||
| markdown-viewer.tsx | ||
| ModernHeroWithGradients.tsx | ||
| Navbar.tsx | ||
| search-space-form.tsx | ||
| TokenHandler.tsx | ||