Skip to content

Commit

Permalink
fix import error
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicvaz committed Oct 31, 2023
1 parent 007ab31 commit ce69055
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,14 +228,7 @@ export const WorkflowsEditorComponent: React.FC = () => {
...new Set(
Object.values(workflowPieces)
.reduce<Array<string | null>>((acc, next) => {
acc.push(
`${next.source_image.split("ghcr.io/")[1].split(":")[0]}:${
next.source_image
.split("ghcr.io/")[1]
.split(":")[1]
.split("-")[0]
}`,
);
acc.push(next.source_image);
return acc;
}, [])
.filter((su) => !!su) as string[],
Expand Down Expand Up @@ -501,7 +494,14 @@ export const WorkflowsEditorComponent: React.FC = () => {
content={
<ul>
{incompatiblesPieces.map((item) => (
<li key={item}>{item}</li>
<li key={item}>
{`${item.split("ghcr.io/")[1].split(":")[0]}: ${
item
.split("ghcr.io/")[1]
.split(":")[1]
.split("-")[0]
}`}
</li>
))}
</ul>
}
Expand Down

0 comments on commit ce69055

Please sign in to comment.