Skip to content

Commit

Permalink
repair lint and build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdriesler committed Aug 9, 2023
1 parent e54cad8 commit b0df81a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,19 @@ const TemplateLibraryControl = ({ templates }: TemplateLibraryControlProps): Rea
{templateCategories.map((category) => (
<button
key={`template-library-tab-button-${category.toLowerCase()}`}
className={`${category === activeCategory
className={`${
category === activeCategory
? 'np-bg-green np-shadow-main np-sticky np-left-0 np-right-0 np-z-20 np-translate-y-[-2px]'
: 'np-z-10 np-translate-y-[-1px] hover:np-bg-grey'
} np-inline-block np-box-border np-mr-1 last:np-mr-2 np-rounded-sm`}
} np-inline-block np-box-border np-mr-1 last:np-mr-2 np-rounded-sm`}
onClick={() => {
setActiveCategory(category)
}}
>
<p
className={`${category === activeCategory ? 'np-text-darkgreen' : 'np-text-dark'
} np-pl-2 np-pr-2 np-font-sans np-text-sm np-select-none -np-translate-y-px`}
className={`${
category === activeCategory ? 'np-text-darkgreen' : 'np-text-dark'
} np-pl-2 np-pr-2 np-font-sans np-text-sm np-select-none -np-translate-y-px`}
>
{category}
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ export const GenericNodeLabel = ({ node, template }: GenericNodeLabelProps) => {
<path
id={`node-label-path-${id}`}
fill="none"
d={`M ${position.x + dx + NODE_LABEL_FONT_SIZE / 2 - 2} ${position.y + nodeHeight} L ${position.x + dx + NODE_LABEL_FONT_SIZE / 2 - 3
} ${position.y}`}
d={`M ${position.x + dx + NODE_LABEL_FONT_SIZE / 2 - 2} ${position.y + nodeHeight} L ${
position.x + dx + NODE_LABEL_FONT_SIZE / 2 - 3
} ${position.y}`}
/>
<text
className="np-font-panel np-select-none np-pointer-events-none"
Expand Down
2 changes: 1 addition & 1 deletion packages/nodes/src/store/utils/expireSolution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const expireSolution = (state: NodesAppState): void => {

// Update solution lifecycle flags
state.lifecycle.solution = 'expired'
state.lifecycle.model = { status: 'expired', progress: 0 }
state.lifecycle.model = { status: 'expired', progress: 0, objectCount: 0 }

// Clear cache of solution data
state.cache.portSolutionData = {}
Expand Down

0 comments on commit b0df81a

Please sign in to comment.