Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/screen-renderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</template>

<script>
import { cloneDeep, isEmpty, isEqual } from "lodash";
import { cloneDeep, isEmpty, isMatch, omit } from "lodash";
import Json2Vue from "../mixins/Json2Vue";
import CurrentPageProperty from "../mixins/CurrentPageProperty";
import WatchersSynchronous from "@/components/watchers-synchronous";
Expand Down Expand Up @@ -95,7 +95,7 @@ export default {
},
methods: {
rebuildScreen(definition) {
if (!isEqual(definition, this.currentDefinition)) {
if (!isMatch(this.currentDefinition, omit(definition, "isMobile"))) {
this.currentDefinition = cloneDeep(definition);
this.component = this.buildComponent(this.currentDefinition);
}
Expand Down
Loading