esoftplay 0.0.220 → 0.0.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -213,15 +213,16 @@ export default function m(props: LibComposeProps): any {
213
213
  let [_schema, _setSchema, _getSchema] = useLazyState(props.schema)
214
214
  const [state] = schema.useState()
215
215
 
216
- UserRoutes.state().listen(() => {
217
- if (state.length)
218
- for (const row of state) {
219
- if (UserRoutes.getCurrentRouteName() == row?.module && row?.schema && row.id == props.id) {
220
- _setSchema(row?.schema)
216
+ if (props.id)
217
+ UserRoutes.state().listen(() => {
218
+ if (state.length)
219
+ for (const row of state) {
220
+ if (UserRoutes.getCurrentRouteName() == row?.module && row?.schema && row.id == props.id) {
221
+ _setSchema(row?.schema)
222
+ }
221
223
  }
222
- }
223
224
  _setSchema(_getSchema())()
224
- })
225
+ })
225
226
 
226
227
  return Boolean(_schema)
227
228
  ? renderUIFromJSON(_schema)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.220",
3
+ "version": "0.0.221",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",