Skip to content

Commit

Permalink
addSystem: logChange with layoutID
Browse files Browse the repository at this point in the history
  • Loading branch information
jpvoigt committed Nov 22, 2023
1 parent 7dc1eff commit 35de2f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/store/data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,10 @@ const dataModule = {

// get relevant rastrumDesc
const rastrumDesc = layout.querySelector('rastrumDesc')
if (xmlIDs.length === 0) { // no layoutDesc or rastrumDesc created
xmlIDs.push(layoutId)
}
console.log('xmlIDs', xmlIDs)

// no rastrum so far
if (!activeSystemId || !rastrumDesc.querySelector('rastrum[*|id="' + activeSystemId + '"]')) {
Expand Down Expand Up @@ -1078,7 +1082,6 @@ const dataModule = {
const baseMessage = 'adjust systems on ' + docName + ', p.'

dispatch('loadDocumentIntoStore', { path: path, dom: modifiedDom })
// TODO xmlIDs
dispatch('logChange', { path: path, baseMessage, param, xmlIDs, isNewDocument: false })
},

Expand Down

0 comments on commit 35de2f6

Please sign in to comment.