Fix schema for instrumentwidget bookmarks
This commit is contained in:
parent
4bab3877f3
commit
40703c3681
|
|
@ -41,7 +41,7 @@ def find_content(content_list, bookmark):
|
|||
if content is None:
|
||||
return ''
|
||||
if content['type'] in ['text_block', 'subtitle', 'solution', 'basic_knowledge']:
|
||||
return content['value']['text']
|
||||
return content['value'].get('text', '')
|
||||
return content_dict.get(content['type'], '')
|
||||
|
||||
class NoteNode(DjangoObjectType):
|
||||
|
|
|
|||
Loading…
Reference in New Issue