Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Return empty bookmark list if nothing is found. This helps remove the null check on the caller
Tianzhou Chenf84055a53860
diff --git a/frontend/src/store/modules/bookmark.ts b/frontend/src/store/modules/bookmark.tsindex 789c833ace..f1fabd343e 100644--- a/frontend/src/store/modules/bookmark.ts+++ b/frontend/src/store/modules/bookmark.ts@@ -21,8 +21,8 @@ const state: () => BookmarkState = () => ({const getters = {bookmarkListByUser: (state: BookmarkState) => (userId: UserId- ): Bookmark[] | undefined => {- return state.bookmarkListByUser.get(userId);+ ): Bookmark[] => {+ return state.bookmarkListByUser.get(userId) || [];},bookmarkByUserAndLink: (state: BookmarkState) => (userId: UserId,