Skip to content

Commit 04f11a9

Browse files
committed
improvement(url-state): cleanup pass — replace-on-close for the fork activity view, TSDoc form for the logs nullable comment
1 parent d381153 commit 04f11a9

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/sim/app/workspace/[workspaceId]/logs/search-params.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ export const parseAsTriggers = createParser<TriggerType[]>({
105105
*/
106106
export const logFilterParsers = {
107107
timeRange: parseAsTimeRange.withDefault(DEFAULT_TIME_RANGE),
108-
// Deliberately nullable: only populated when timeRange is "Custom range";
109-
// every preset range derives its window from the label instead.
108+
/**
109+
* Deliberately nullable: only populated when timeRange is "Custom range";
110+
* every preset range derives its window from the label instead.
111+
*/
110112
startDate: parseAsString,
111113
endDate: parseAsString,
112114
level: parseAsLogLevel.withDefault('all'),

apps/sim/ee/workspace-forking/components/forks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ export function Forks() {
411411
<ForkActivityDetailView
412412
workspaceId={workspaceId}
413413
workspaceNames={lineagePartnerNames(parent, forks)}
414-
onBack={() => setForkView(null)}
414+
onBack={() => void setForkView(null, { history: 'replace' })}
415415
actions={
416416
undoableRun
417417
? [

0 commit comments

Comments
 (0)