Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Remove extra compiled projects for deployment (#109)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduard Lataretu <[email protected]>
  • Loading branch information
elataret authored Jun 21, 2024
1 parent 544c56c commit ce8742f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/src/features/Compilation/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { useAtom, useAtomValue, useSetAtom } from 'jotai'
import { useAtomValue, useSetAtom } from 'jotai'
import { artifactFolder } from '@/utils/utils'
import Container from '../../ui_components/Container'
import { type AccordianTabs } from '../Plugin'
Expand Down Expand Up @@ -30,7 +30,7 @@ export const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {
const activeTomlPath = useAtomValue(activeTomlPathAtom)
const currentWorkspacePath = useAtomValue(currentWorkspacePathAtom)

const [contracts, setContracts] = useAtom(contractsAtom)
const setContracts = useSetAtom(contractsAtom)
const setSelectedContract = useSetAtom(selectedContractAtom)

const { status, isCompiling } = useAtomValue(compilationAtom)
Expand Down Expand Up @@ -165,7 +165,7 @@ export const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {
contractsToAdd.push(contract)
}

setContracts([...contractsToAdd, ...contracts])
setContracts(contractsToAdd)
setSelectedContract(contractsToAdd[0])

for (const file of compileResult.file_content) {
Expand Down

0 comments on commit ce8742f

Please sign in to comment.