Skip to content

Commit

Permalink
Update the SourceDialog component
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmyt committed Sep 11, 2024
1 parent 6aa8cd1 commit ef7e85e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ export const SourceDialog = ({ open, onClose, refreshApps }) => {

<div className="source-list">
{sources.map((source) => (
<SourceItem key={source.name} {...source} />
<SourceItem key={source.name} fetchSources={fetchSources} setCreateNew={setCreateNew}
{...source} />
))}
{createNew && <SourceItem isNew />}
{createNew && <SourceItem isNew fetchSources={fetchSources} setCreateNew={setCreateNew}/>}
</div>

<div className="btn-actions">
Expand Down

0 comments on commit ef7e85e

Please sign in to comment.