Skip to content

Commit 72618af

Browse files
committed
fix: discard-and-proceed not working when creating new attribution
- adjust check setting the selected attribution to distinguish between null and empty string Fixes #2635 Signed-off-by: Maxim Stykow <maxim.stykow@tngtech.com>
1 parent 47e0d6d commit 72618af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Frontend/state/actions/resource-actions/navigation-actions.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ export function setSelectedResourceOrAttributionIdToTargetValue(): AppThunkActio
3636
const targetSelectedAttributionId =
3737
getTargetSelectedAttributionId(getState());
3838

39-
if (targetSelectedResourceId) {
39+
if (targetSelectedResourceId !== null) {
4040
dispatch(setSelectedResourceId(targetSelectedResourceId));
4141
dispatch(setTargetSelectedResourceId(null));
4242
}
4343

44-
if (targetSelectedAttributionId) {
44+
if (targetSelectedAttributionId !== null) {
4545
dispatch(setSelectedAttributionId(targetSelectedAttributionId));
4646
dispatch(setTargetSelectedAttributionId(null));
4747
}

0 commit comments

Comments
 (0)