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:
parent
f878167a36
commit
477e76a0af
1 changed files with 1 additions and 1 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue