pull/3549/head
yann300 2 years ago committed by Aniket
parent ebff3e35ff
commit 242072e8b1
  1. 4
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -164,8 +164,8 @@ export const TabsUI = (props: TabsUIProps) => {
data-id='play-editor'
className="btn text-success py-0"
disabled={!(tabsState.currentExt === 'js' || tabsState.currentExt === 'ts' || tabsState.currentExt === 'sol')}
onClick={async () => {
const path = active().substr(active().indexOf('/') + 1, active().length)
onClick={async () => {
const path = active().substr(active().indexOf('/') + 1, active().length)
const content = await props.plugin.call('fileManager', "readFile", path)
if (tabsState.currentExt === 'js' || tabsState.currentExt === 'ts') {
await props.plugin.call('scriptRunner', 'execute', content, path)

Loading…
Cancel
Save