Skip to content

Commit f375a84

Browse files
committed
apply review changes
1 parent ece6e27 commit f375a84

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

client/web/compose/src/components/PageBlocks/Configurator.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ export default {
240240
241241
data () {
242242
return {
243-
currentBlockState: undefined,
243+
initialBlockState: undefined,
244+
initialBlockID: undefined,
244245
}
245246
},
246247
@@ -276,7 +277,8 @@ export default {
276277
},
277278
278279
created () {
279-
this.currentBlockState = this.block.meta.namespaceID
280+
this.initialBlockState = this.block.meta.namespaceID
281+
this.initialBlockID = this.block.blockID
280282
},
281283
282284
methods: {
@@ -285,7 +287,7 @@ export default {
285287
this.block.options.refreshRate = e.target.value < 5 && e.target.value > 0 ? 5 : e.target.value
286288
},
287289
updateGlobalState (value) {
288-
this.block.blockID = this.currentBlockState === value ? this.block.blockID : NoID
290+
this.block.blockID = this.initialBlockState === value ? this.initialBlockID : NoID
289291
290292
if (value) {
291293
this.block.meta.namespaceID = value

0 commit comments

Comments
 (0)