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

Commit

Permalink
Fix incorrect if statement and linting error (#249)
Browse files Browse the repository at this point in the history
* Fix linting error

* Add on pull_request to github workflows of standalone and surf

- fix incorrect if statement.

* Restrict on push to main branch

* Also run test standalone and test surf on tag create
  • Loading branch information
tjeerddie authored Oct 3, 2023
1 parent d10cc88 commit 61a752d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/test-standalone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ name: Lint and test the GPL version

on:
push:
branches:
- main
create:
tags:
- '*'
workflow_call:
pull_request:

jobs:
build:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-surf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ name: Lint and test the SURF version

on:
push:
branches:
- main
create:
tags:
- '*'
workflow_call:
pull_request:

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ProcessDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function ProcessDetail({ match, query, setQuery }: IProps) {
const localTabs = localStepUserInput ? ["user_input", "process"] : ["process"];
const localSelectedTab = localStepUserInput ? "user_input" : "process";
const getProductId = (product: string | { product_id: string }) =>
typeof product === 'object' ? product : product.product_id;
typeof product === "object" ? product.product_id : product;
const product_id = getProductId(processInstance.product);
setProductName(productNameById(product_id, products));
setCustomerName(organisationNameByUuid(processInstance.customer, organisations));
Expand Down

0 comments on commit 61a752d

Please sign in to comment.