Skip to content

Commit 577ffbb

Browse files
committed
fix: Add datset as arg to simulation prompt
1 parent 1353989 commit 577ffbb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pages/policy/output/Analysis.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ export default function Analysis(props) {
220220
const { impact, policyLabel, metadata, policy, region, timePeriod } = props;
221221
const [searchParams] = useSearchParams();
222222
const selectedVersion = searchParams.get("version") || metadata.version;
223+
const dataset = searchParams.get("dataset") || null;
223224
const impactLabels = [
224225
"distributionalImpact.incomeDecile.relative",
225226
"povertyImpact.regular.byAge",
@@ -271,6 +272,7 @@ export default function Analysis(props) {
271272

272273
const jsonPostBody = {
273274
currency: metadata.currency,
275+
dataset: dataset,
274276
selected_version: selectedVersion,
275277
time_period: timePeriod,
276278
impact: impact,

0 commit comments

Comments
 (0)