mirror of
https://github.com/morgan9e/chatgpt-web
synced 2026-04-14 00:14:04 +09:00
Oops. Fix a missed line from refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<script context="module" lang="ts">
|
||||
import { getChatDefaults, getExcludeFromProfile } from './Settings.svelte'
|
||||
// Profile definitions
|
||||
import { addMessage, clearMessages, getChatSettings, getCustomProfiles, getGlobalSettings, resetChatSettings, setChatSettingValueByKey, setGlobalSettingValueByKey } from './Storage.svelte'
|
||||
import { addMessage, clearMessages, getChat, getChatSettings, getCustomProfiles, getGlobalSettings, resetChatSettings, saveChatStore, setChatSettingValueByKey, setGlobalSettingValueByKey } from './Storage.svelte'
|
||||
import type { Message, SelectOption, ChatSettings } from './Types.svelte'
|
||||
import { v4 as uuidv4 } from 'uuid'
|
||||
|
||||
@@ -94,7 +94,8 @@ export const applyProfile = (chatId:number, key?:string, resetChat:boolean = fal
|
||||
})
|
||||
}
|
||||
// Set to auto-start if we should
|
||||
setChatSettingValueByKey(chatId, 'startSession', settings.autoStartSession)
|
||||
getChat(chatId).startSession = settings.autoStartSession
|
||||
saveChatStore()
|
||||
// Mark mark this as last used
|
||||
setGlobalSettingValueByKey('lastProfile', key)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user