ДОМЕНЫ - ВОПРОСЫ - СКЛАД - Систематизировать ответы по поставщику без поставок через анализ оплат и возвратов
This commit is contained in:
@@ -499,20 +499,34 @@ export function evolveAddressNavigationStateWithAssistantItem(
|
||||
)
|
||||
);
|
||||
const nextEvents = capNavigationEvents([...state.navigation_history, navigationEvent]);
|
||||
const nextSessionContext =
|
||||
action === "open"
|
||||
? {
|
||||
active_result_set_id: resultSetId,
|
||||
active_focus_object: focusObject ?? null,
|
||||
last_confirmed_route: routeId ?? null,
|
||||
date_scope: {
|
||||
as_of_date: normalizedDateScope.as_of_date,
|
||||
period_from: normalizedDateScope.period_from,
|
||||
period_to: normalizedDateScope.period_to
|
||||
},
|
||||
organization_scope: organizationScope ?? state.session_context.organization_scope
|
||||
}
|
||||
: {
|
||||
active_result_set_id: resultSetId,
|
||||
active_focus_object: focusObject ?? state.session_context.active_focus_object,
|
||||
last_confirmed_route: routeId ?? state.session_context.last_confirmed_route,
|
||||
date_scope: {
|
||||
as_of_date: normalizedDateScope.as_of_date ?? state.session_context.date_scope.as_of_date,
|
||||
period_from: normalizedDateScope.period_from ?? state.session_context.date_scope.period_from,
|
||||
period_to: normalizedDateScope.period_to ?? state.session_context.date_scope.period_to
|
||||
},
|
||||
organization_scope: organizationScope ?? state.session_context.organization_scope
|
||||
};
|
||||
return {
|
||||
...state,
|
||||
updated_at: createdAt,
|
||||
session_context: {
|
||||
active_result_set_id: resultSetId,
|
||||
active_focus_object: focusObject ?? state.session_context.active_focus_object,
|
||||
last_confirmed_route: routeId ?? state.session_context.last_confirmed_route,
|
||||
date_scope: {
|
||||
as_of_date: normalizedDateScope.as_of_date ?? state.session_context.date_scope.as_of_date,
|
||||
period_from: normalizedDateScope.period_from ?? state.session_context.date_scope.period_from,
|
||||
period_to: normalizedDateScope.period_to ?? state.session_context.date_scope.period_to
|
||||
},
|
||||
organization_scope: organizationScope ?? state.session_context.organization_scope
|
||||
},
|
||||
session_context: nextSessionContext,
|
||||
result_sets: nextResultSets,
|
||||
navigation_history: nextEvents
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user