mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
lint
This commit is contained in:
parent
ea61c790bc
commit
cc023bf7f2
@ -70,15 +70,19 @@ export function SaveReproductionModal() {
|
|||||||
console.log('SubmitReproduction');
|
console.log('SubmitReproduction');
|
||||||
|
|
||||||
const simulationData = getLastUserSimulationData();
|
const simulationData = getLastUserSimulationData();
|
||||||
|
|
||||||
if (!simulationData) {
|
if (!simulationData) {
|
||||||
toast.error('No simulation data found');
|
toast.error('No simulation data found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const messages = getLastSimulationChatMessages();
|
const messages = getLastSimulationChatMessages();
|
||||||
|
|
||||||
if (!messages) {
|
if (!messages) {
|
||||||
toast.error('No user prompt found');
|
toast.error('No user prompt found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const reproData = { simulationData, messages };
|
const reproData = { simulationData, messages };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -87,6 +91,7 @@ export function SaveReproductionModal() {
|
|||||||
const solution: BoltProblemSolution = {
|
const solution: BoltProblemSolution = {
|
||||||
evaluator: problem.solution?.evaluator,
|
evaluator: problem.solution?.evaluator,
|
||||||
...reproData,
|
...reproData,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: Also store recordingId for easier debugging.
|
* TODO: Also store recordingId for easier debugging.
|
||||||
* recordingId,
|
* recordingId,
|
||||||
|
Loading…
Reference in New Issue
Block a user