Skip to content

Commit 821f800

Browse files
committed
Fixed error in dymo open label
1 parent 1f66d2d commit 821f800

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/useDymoOpenLabel/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ export function useDymoOpenLabel(statusDymoService, labelXML, port = 41951) {
77
const [status, setStatus] = useState("init");
88
const [label, setLabel] = useState(null);
99
useEffect(() => {
10-
if (statusDymoService === "success") {
11-
setStatus("loading");
10+
setStatus("loading");
11+
if (statusDymoService === "success" && labelXML) {
1212
dymoAxios
1313
.post(
1414
getDymoUrl("RenderLabel", port),

0 commit comments

Comments
 (0)