Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
SALEOR-3354 extend editorjs validator
Michał Ociepkac448d0562a73
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c39e60e479..5c902c8b10 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,8 @@All notable, unreleased changes to this project will be documented in this file. For the released changes, please visit the [Releases](https://github.com/mirumee/saleor/releases) page.## [Unreleased]++- Extend editorjs validator to accept blocks different than text - #SALEOR-3354 by @mociepka- Add query contains only schema validation - #6827 by @fowczarek- Add introspection caching - #6871 by @fowczarek- Refactor plugins manager(add missing tracing, optimize imports, drop plugins manager from settings) - #6890 by @fowczarekdiff --git a/saleor/core/utils/editorjs.py b/saleor/core/utils/editorjs.pyindex a5a6f73fbd..d10dedef20 100644--- a/saleor/core/utils/editorjs.py+++ b/saleor/core/utils/editorjs.py@@ -43,7 +43,7 @@ def clean_editor_js(definitions: Optional[Dict], *, to_string: bool = False):else:blocks[index]["data"]["items"][item_index] = new_textelse:- text = block["data"]["text"]+ text = block["data"].get("text")if not text:continuenew_text = clean_text_data(text)