mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 13:44:29 +08:00
fixed #1625
This commit is contained in:
parent
cdaa15c7c0
commit
9396a5ebcc
1 changed files with 2 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ let commandsTags = {
|
|||
};
|
||||
|
||||
export function updateTagCommands() {
|
||||
if (DB.getSnapshot().tags.length > 0) {
|
||||
if (DB.getSnapshot()?.tags?.length > 0) {
|
||||
commandsTags.list = [];
|
||||
|
||||
commandsTags.list.push({
|
||||
|
|
@ -266,7 +266,7 @@ let commandsPresets = {
|
|||
};
|
||||
|
||||
export function updatePresetCommands() {
|
||||
if (DB.getSnapshot().presets.length > 0) {
|
||||
if (DB.getSnapshot()?.presets?.length > 0) {
|
||||
commandsPresets.list = [];
|
||||
|
||||
DB.getSnapshot().presets.forEach((preset) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue