mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Use optional chaining
This commit is contained in:
parent
0a648eddae
commit
5578509822
2 changed files with 6 additions and 12 deletions
|
|
@ -350,9 +350,7 @@ export default {
|
|||
getAppCategory,
|
||||
getAppEndpoint,
|
||||
getSearchLinks (app) {
|
||||
if (typeof app.searchLinks === 'undefined') return []
|
||||
|
||||
return app.searchLinks
|
||||
return app?.searchLinks || []
|
||||
},
|
||||
// Search priorities
|
||||
titleStartsWith (query, app) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue