Clear log should now work

This commit is contained in:
Valtteri Karesto
2022-06-21 10:53:52 +03:00
parent fb5259221b
commit 89f8671217

View File

@@ -104,7 +104,11 @@ const Test = () => {
flexDirection: "column",
}}
>
<LogBoxForScripts title="Helper scripts" logs={snap.scriptLogs} />
<LogBoxForScripts
title="Helper scripts"
logs={snap.scriptLogs}
clearLog={() => (state.scriptLogs = [])}
/>
</Flex>
)}
<Flex>