Skip to content

Commit

Permalink
Fix a couple more issues in stories
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Nov 13, 2023
1 parent 42af08b commit 4df7ba2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/scenes/experiments/Experiment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ export function Experiment(): JSX.Element {
},
]}
/>
{!experiment?.start_date && (
{experiment && !experiment.start_date && (
<div className="mt-4 w-full">
<ExperimentImplementationDetails experiment={experiment} />
</div>
Expand Down
7 changes: 5 additions & 2 deletions frontend/src/scenes/experiments/experimentLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,11 @@ export const experimentLogic = kea<experimentLogicType>([
)
return response as Experiment
} catch (error: any) {
actions.setExperimentMissing()
throw error
if (error.status === 404) {
actions.setExperimentMissing()
} else {
throw error
}
}
}
return NEW_EXPERIMENT
Expand Down

0 comments on commit 4df7ba2

Please sign in to comment.