fix: FORMAT NATIF hors cadre, apercu glossaire toujours FR/IR, prompt juridique par defaut
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m32s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m32s
This commit is contained in:
@@ -130,6 +130,17 @@ export const useTranslationStore = create<TranslationState>()(
|
||||
}),
|
||||
{
|
||||
name: "translation-settings",
|
||||
version: 2,
|
||||
migrate: (persistedState: unknown, fromVersion: number) => {
|
||||
// v1 → v2: clear systemPrompt that may have been pre-filled with legal text
|
||||
if (fromVersion < 2) {
|
||||
const state = persistedState as { settings?: { systemPrompt?: string } };
|
||||
if (state?.settings) {
|
||||
state.settings.systemPrompt = "";
|
||||
}
|
||||
}
|
||||
return persistedState as TranslationState;
|
||||
},
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user