Fix parsing issue with chunks in store.ts

This commit is contained in:
Alex
2024-03-23 11:42:50 +00:00
parent b26b49d0ca
commit 3c492062a9

View File

@@ -14,7 +14,7 @@ const store = configureStore({
preloadedState: {
preference: {
apiKey: key ?? '',
chunks: JSON.parse(chunks ?? '2'),
chunks: JSON.parse(chunks ?? '2').toString(),
selectedDocs: doc !== null ? JSON.parse(doc) : null,
prompt:
prompt !== null