Unable to sync card onto ankihub

Before this error happened, I was trying to include additional details on the header, so I pressed suggest a change. However, it did not let me. Appreciate the help. Thanks.

Error message (don't change this)
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Mac 12.5
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-06-14 11:10:14

Traceback (most recent call last):

  File "aqt.webview", line 42, in cmd

  File "aqt.webview", line 149, in _onCmd

  File "aqt.webview", line 624, in _onBridgeCmd

  File "decorator", line 232, in fun

  File "anki.hooks", line 89, in decorator_wrapper

  File "anki.hooks", line 86, in repl

  File "/Users/Jonathan/Library/Application Support/Anki2/addons21/24411424/custom_shortcuts.py", line 440, in cs_captureBridgeToggleSticky
    return _old(self,cmd)

  File "aqt.editor", line 467, in onBridgeCmd

  File "/Users/Jonathan/Library/Application Support/Anki2/addons21/1322529746/gui/editor.py", line 60, in _on_suggestion_button_press
    _on_suggestion_button_press_inner(editor)

  File "/Users/Jonathan/Library/Application Support/Anki2/addons21/1322529746/gui/editor.py", line 108, in _on_suggestion_button_press_inner
    open_suggestion_dialog_for_note(editor.note, parent=editor.widget)

  File "/Users/Jonathan/Library/Application Support/Anki2/addons21/1322529746/gui/suggestion_dialog.py", line 87, in open_suggestion_dialog_for_note
    added_new_images=_added_new_images(note),

  File "/Users/Jonathan/Library/Application Support/Anki2/addons21/1322529746/gui/suggestion_dialog.py", line 158, in _added_new_images
    note_info_ah = ankihub_db.note_data(note.id)

  File "/Users/Jonathan/Library/Application Support/Anki2/addons21/1322529746/db/db.py", line 292, in note_data
    field["name"] for field in aqt.mw.col.models.get(NotetypeId(mid))["flds"]

TypeError: 'NoneType' object is not subscriptable

Sentry link (for developers)

Do you still have this problem?

Please update the add-on (Tools β†’ Add-ons β†’ Check for Updates) and Anki (to version 2.1.56) or it won’t work.