Assignment_type = assignment_details.type AttributeError: 'NoneType' object has no attribute 'type'

Im getting this error while creating the assignment and submit

website.js:177 Traceback (most recent call last):
  File "apps/frappe/frappe/app.py", line 91, in application
    response = frappe.handler.handle()
  File "apps/frappe/frappe/handler.py", line 47, in handle
    data = execute_cmd(cmd)
  File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
    return frappe.call(method, **frappe.form_dict)
  File "apps/frappe/frappe/__init__.py", line 1622, in call
    return fn(*args, **newargs)
  File "apps/lms/lms/lms/doctype/lms_assignment_submission/lms_assignment_submission.py", line 43, in upload_assignment
    assignment_type = assignment_details.type
AttributeError: 'NoneType' object has no attribute 'type'

Here Assignment Syntax

{{ Assignment("2685afcad2-Image") }}

id : 2685afcad2

fieldtype : Image
this is the actual syntax

I faced the same problem. I hope they can help, or I will have to implement the working functionality myself