Skip to content

Commit

Permalink
fix crash on relationship page
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski committed Oct 13, 2023
1 parent 9dbd0c7 commit 8d7749a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions resources/js/components/ColumnToggler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@
methods: {
isDifferentState(state, cacheState) {
if (!Array.isArray(state) || !Array.isArray(cacheState) || typeof state !== typeof cacheState) {
return true
}
const stateKeys = state.map(state => state.attribute)
const cacheStateKeys = cacheState.map(state => state.attribute)
Expand Down

0 comments on commit 8d7749a

Please sign in to comment.