1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-05 13:15:18 +02:00

Fix user identification in adventure filtering: update user primary key reference from 'pk' to 'uuid' in search page logic

This commit is contained in:
Sean Morley 2024-11-26 21:59:15 -05:00
parent f878167a36
commit 477e76a0af

View file

@ -40,7 +40,7 @@
myAdventures = data.props.adventures;
publicAdventures = data.props.adventures;
if (data.user?.pk != null) {
if (data.user?.uuid != null) {
myAdventures = myAdventures.filter((adventure) => adventure.user_id === data.user?.uuid);
} else {
myAdventures = [];