Merge 5a67dec60f
into 9909a0c4db
This commit is contained in:
commit
4429995fff
|
@ -56,7 +56,13 @@
|
|||
) => {
|
||||
if (screen && key) {
|
||||
searchComponents(screen, key)
|
||||
editorValue = $previewStore.selectedComponentContext?.state?.[key] ?? ""
|
||||
const stateValue = $previewStore.selectedComponentContext?.state?.[key]
|
||||
|
||||
if (typeof stateValue === "object") {
|
||||
editorValue = JSON.stringify(stateValue)
|
||||
} else {
|
||||
editorValue = stateValue ?? ""
|
||||
}
|
||||
} else {
|
||||
editorValue = ""
|
||||
componentsUsingState = []
|
||||
|
|
Loading…
Reference in New Issue