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:
|
if content is None:
|
||||||
return ''
|
return ''
|
||||||
if content['type'] in ['text_block', 'subtitle', 'solution', 'basic_knowledge']:
|
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'], '')
|
return content_dict.get(content['type'], '')
|
||||||
|
|
||||||
class NoteNode(DjangoObjectType):
|
class NoteNode(DjangoObjectType):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue