Clear script log on running new script.

This commit is contained in:
muzam1l
2022-08-01 17:04:26 +05:30
parent 6ee1a09aaa
commit d459b2ee92

View File

@@ -143,7 +143,6 @@ const RunScript: React.FC<{ file: IFile }> = ({ file: { content, name } }) => {
setIframeCode(template);
state.scriptLogs = [
...snap.scriptLogs,
{ type: "success", message: "Started running..." },
];
} catch (err) {