pull/5167/head
bunsenstraat 2 months ago
parent 3d5793bcd8
commit c7f6932bba
  1. 2
      apps/remix-ide/src/app/tabs/script-runner-ui.tsx
  2. 2
      libs/remix-ui/scriptrunner/src/lib/script-runner-ui.tsx

@ -45,7 +45,7 @@ export class ScriptRunnerUIPlugin extends ViewPlugin {
url = testPluginUrl
}else{
baseUrl = `//${new URL(testPluginUrl).host}`
url = `${baseUrl}?template=${name}`
url = `${baseUrl}?template=${name}&timestamp=${Date.now()}`
}
}

@ -24,7 +24,7 @@ export const ScriptRunnerUI = (props: ScriptRunnerUIProps) => {
// Fetch the JSON data from the localhost server using Axios
const fetchData = async () => {
try {
const response = await axios.get('http://localhost:3000/projects.json');
const response = await axios.get('http://localhost:3000/projects.json?timestamp=' + Date.now());
setConfigurations(response.data);
} catch (error) {
console.error("Error fetching the projects data:", error);

Loading…
Cancel
Save