mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
make sure that recent view always sorts by opened_at even if not available as sort option in UI
This commit is contained in:
committed by
Mary Hipp Rogers
parent
e5591d145f
commit
df18fe0298
@@ -39,6 +39,10 @@ export const workflowLibrarySlice = createSlice({
|
||||
workflowLibraryViewChanged: (state, action: PayloadAction<WorkflowLibraryState['view']>) => {
|
||||
state.view = action.payload;
|
||||
state.searchTerm = '';
|
||||
if (action.payload === 'recent') {
|
||||
state.orderBy = 'opened_at';
|
||||
state.direction = 'DESC';
|
||||
}
|
||||
},
|
||||
workflowLibraryTagToggled: (state, action: PayloadAction<string>) => {
|
||||
const tag = action.payload;
|
||||
|
||||
Reference in New Issue
Block a user