Skip to content

Commit

Permalink
fix: Invalid return in useEffect with hot patch
Browse files Browse the repository at this point in the history
  • Loading branch information
danh91 committed Mar 22, 2024
1 parent d8759a9 commit 115990d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion apps/api/karrio/server/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2024.2
2024.2.1
2 changes: 1 addition & 1 deletion apps/dashboard/src/modules/Orders/create_label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default function CreateShipmentPage(pageProps: any) {
if (orders.isLoading) return;
if (templates.isLoading) return;
if (workspace_config.query.isLoading) return;
if (shipment_id === 'new') return setTimeout(() => setInitialData(), 500) as any;
if (shipment_id === 'new') { setTimeout(() => setInitialData(), 500); return; };
if (shipment_id !== 'new' && Object.keys(shipment.recipient).length === 0) return;

setReady(true);
Expand Down
4 changes: 2 additions & 2 deletions bin/deploy-hobby
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

export KARRIO_TAG="${KARRIO_TAG:-2024.2}"
export KARRIO_TAG="${KARRIO_TAG:-2024.2.1}"
export SENTRY_DSN="${SENTRY_DSN:-'https://public@sentry.example.com/1'}"

SECRET_KEY=$(head -c 28 /dev/urandom | sha224sum -b | head -c 56)
Expand All @@ -23,7 +23,7 @@ if ! [ -z "$1" ]
then
export KARRIO_TAG=$1
else
echo "What version of Karrio would you like to install? (We default to '2024.2')"
echo "What version of Karrio would you like to install? (We default to '2024.2.1')"
echo "You can check out available versions here: https://hub.docker.com/r/karrio/server/tags"
read -r KARRIO_TAG_READ
if [ -z "$KARRIO_TAG_READ" ]
Expand Down
2 changes: 1 addition & 1 deletion bin/upgrade-hobby
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ else
fi

[[ -f ".env" ]] && export $(cat .env | xargs) || ( echo "No .env file found. Please create it with SECRET_KEY and DOMAIN set." && exit 1)
export KARRIO_TAG="${KARRIO_TAG:-2024.2}"
export KARRIO_TAG="${KARRIO_TAG:-2024.2.1}"

# get karrio scripts
mkdir -p ./karrio
Expand Down
6 changes: 3 additions & 3 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
api:
container_name: karrio.api
image: karrio.docker.scarf.sh/karrio/server:2024.2
image: karrio.docker.scarf.sh/karrio/server:2024.2.1
restart: unless-stopped
ports:
- ${KARRIO_HTTP_PORT}:${KARRIO_HTTP_PORT}
Expand All @@ -25,7 +25,7 @@ services:

worker:
container_name: karrio.worker
image: karrio.docker.scarf.sh/karrio/server:2024.2
image: karrio.docker.scarf.sh/karrio/server:2024.2.1
restart: unless-stopped
depends_on:
- db
Expand All @@ -46,7 +46,7 @@ services:

dashboard:
container_name: karrio.dashboard
image: karrio.docker.scarf.sh/karrio/dashboard:2024.2
image: karrio.docker.scarf.sh/karrio/dashboard:2024.2.1
restart: unless-stopped
ports:
- ${DASHBOARD_PORT}:3000/tcp
Expand Down

0 comments on commit 115990d

Please sign in to comment.