multiapi_cli 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/lib/multiapi_cli/version.rb +1 -1
- data/lib/multiapi_cli.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60babc8bb42e044305e43ca13f459d2702f0e81a6a43cec0aab0e32b28cb647b
|
4
|
+
data.tar.gz: 075b335a3b4ae45f4e63f7795ce51b9abe4714917c21b1178f70f905415d2413
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 808379a977b8f45b6b4afddcebc044724735383d775a44ab2e33a5c265100d7a6c90d7d9f688243757b0b88000c484ef265a31f6aec0a0284e320777cfe3a208
|
7
|
+
data.tar.gz: e493a1a5096750c1f5402f37e6617720ba7b20f6187996af20f2d542acc778c9d7ad584d58be2707d95bdc6c9b2a74dcf3153a02c0f08c94c9bc0200481e62b6
|
data/lib/multiapi_cli/version.rb
CHANGED
data/lib/multiapi_cli.rb
CHANGED
@@ -1012,7 +1012,7 @@ module MultiapiCli
|
|
1012
1012
|
console.log('[Edit] ============ CICLO DE CARREGAMENTO ============')
|
1013
1013
|
console.log('[Edit] Estado atual:', {
|
1014
1014
|
id: props.id,
|
1015
|
-
channels: store
|
1015
|
+
channels: store.get#{plural_name.camelize}.length
|
1016
1016
|
})
|
1017
1017
|
|
1018
1018
|
if (!props.id) {
|
@@ -1022,7 +1022,7 @@ module MultiapiCli
|
|
1022
1022
|
}
|
1023
1023
|
|
1024
1024
|
// Buscar o registro diretamente do array no store
|
1025
|
-
const item = store
|
1025
|
+
const item = store.get#{plural_name.camelize}.find(c => c.id === props.id)
|
1026
1026
|
|
1027
1027
|
if (!item) {
|
1028
1028
|
console.error('[Edit] Item não encontrado no store')
|