From 70d193b20dee1ce3071ecbc61b0ea69bb9bef89b Mon Sep 17 00:00:00 2001 From: Alisher Musurmonov Date: Wed, 25 Sep 2024 20:22:31 +0500 Subject: [PATCH] prevent loading behavior for adding pieces --- src/Piece/PieceForm/PieceForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Piece/PieceForm/PieceForm.js b/src/Piece/PieceForm/PieceForm.js index 94ffa03a..61806b32 100644 --- a/src/Piece/PieceForm/PieceForm.js +++ b/src/Piece/PieceForm/PieceForm.js @@ -357,7 +357,7 @@ const PieceForm = ({ poLine={poLine} locationIds={locationIds} locations={locations} - isLocationsLoading={isEditMode && isFetching} + isLocationsLoading={isEditMode && !locationId && isFetching} setLocationValue={mutators.setLocationValue} onChangeDisplayOnHolding={onChangeDisplayOnHolding} />