We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to Unclaim any hex by simply unmarking the checkbox and hitting save is not reflected.
Tried:
Was also reported by other users in the PF2e Foundry discord
Issue is due to _updateObject's "Prune false-y flags", removing those keys when false and thus not updating.
/** @override */ async _updateObject(event, formData) { formData = foundry.utils.expandObject(formData); formData.features = formData.features ? Object.values(formData.features) : []; const state = KingmakerHexData.cleanData(formData, {partial: true}); for ( const [k, v] of Object.entries(state) ) { if ( !v ) delete state[k]; // Prune false-y flags } kingmaker.state.updateSource({ hexes: { [this.object.key]: state } }); await kingmaker.state.save(); }
Pathfinder: Kingmaker
1.0
No response
The text was updated successfully, but these errors were encountered:
Thanks for the callout. I've fixed this locally and it will be included in our first patch!
Sorry, something went wrong.
No branches or pull requests
What happened?
Trying to Unclaim any hex by simply unmarking the checkbox and hitting save is not reflected.
Tried:
Was also reported by other users in the PF2e Foundry discord
Issue is due to _updateObject's "Prune false-y flags", removing those keys when false and thus not updating.
What package are you reporting this for?
Pathfinder: Kingmaker
Version
1.0
Relevant log output
No response
The text was updated successfully, but these errors were encountered: