Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

📎 fix: Keep SharePoint Picker Selections While Navigating (#15389)

Danny Avilad83958d3b3f0
diff --git a/client/src/hooks/Files/useSharePointPicker.ts b/client/src/hooks/Files/useSharePointPicker.ts
index e3812c1b25..05b68e95a4 100644
--- a/client/src/hooks/Files/useSharePointPicker.ts
+++ b/client/src/hooks/Files/useSharePointPicker.ts
@@ -285,6 +285,10 @@ export default function useSharePointPicker({
},
selection: {
mode: 'multiple',
+ /** Without this the picker drops the current selection every time the user
+ * opens another folder or switches pivot, so a selection can only ever be
+ * assembled from one location. */
+ enablePersistence: true,
maximumCount: maxSelectionCount,
},
title: localize('com_files_sharepoint_picker_title'),