Skip to content

Commit

Permalink
fix(log): fixed default runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
YuryShkoda committed Apr 11, 2023
1 parent c7a7399 commit e04300a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const useStyles: any = makeStyles((theme: any) => ({

interface LogComponentProps {
log: LogObject | string
selectedRunTime: RunTimeType
selectedRunTime: RunTimeType | string
}

const LogComponent = (props: LogComponentProps) => {
Expand Down
4 changes: 2 additions & 2 deletions web/src/containers/Studio/internal/hooks/useEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const useEditor = ({
const [log, setLog] = useState<LogObject | string>()
const [webout, setWebout] = useState('')
const [runTimes, setRunTimes] = useState<string[]>([])
const [selectedRunTime, setSelectedRunTime] = useState<RunTimeType>(
RunTimeType.SAS
const [selectedRunTime, setSelectedRunTime] = useState<RunTimeType | string>(
''
)
const [selectedFileExtension, setSelectedFileExtension] = useState('')
const [openFilePathInputModal, setOpenFilePathInputModal] = useState(false)
Expand Down
4 changes: 2 additions & 2 deletions web/src/utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ export interface TreeNode {

export interface LogObject {
body: string
errors: string[]
warnings: string[]
errors?: string[]
warnings?: string[]
}

0 comments on commit e04300a

Please sign in to comment.