Compare commits
2 Commits
48a45b5447
...
a60d500b76
| Author | SHA1 | Date | |
|---|---|---|---|
| a60d500b76 | |||
| 7f6e33242c |
@@ -54,13 +54,7 @@ export default function Playground() {
|
|||||||
}
|
}
|
||||||
return 14;
|
return 14;
|
||||||
});
|
});
|
||||||
const [bulkRounds, setBulkRounds] = useState(() => {
|
const [bulkRounds, setBulkRounds] = useState(1000);
|
||||||
if (typeof window !== "undefined") {
|
|
||||||
const saved = localStorage.getItem("playground-bulkRounds");
|
|
||||||
return saved ? parseInt(saved, 10) : 1000;
|
|
||||||
}
|
|
||||||
return 1000;
|
|
||||||
});
|
|
||||||
const [selectedAgent, setSelectedAgent] = useState(() => {
|
const [selectedAgent, setSelectedAgent] = useState(() => {
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
const saved = localStorage.getItem("playground-selectedAgent");
|
const saved = localStorage.getItem("playground-selectedAgent");
|
||||||
@@ -147,16 +141,6 @@ export default function Playground() {
|
|||||||
}
|
}
|
||||||
}, [fontSize]);
|
}, [fontSize]);
|
||||||
|
|
||||||
// Save bulk rounds to localStorage
|
|
||||||
useEffect(() => {
|
|
||||||
if (typeof window !== "undefined") {
|
|
||||||
localStorage.setItem(
|
|
||||||
"playground-bulkRounds",
|
|
||||||
bulkRounds.toString()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}, [bulkRounds]);
|
|
||||||
|
|
||||||
// Save selected agent to localStorage
|
// Save selected agent to localStorage
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (typeof window !== "undefined") {
|
if (typeof window !== "undefined") {
|
||||||
|
|||||||
Reference in New Issue
Block a user