File tree Expand file tree Collapse file tree
client/web/compose/src/components/PageBlocks Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments