Skip to content
Snippets Groups Projects

Add refresh option to getObject

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -377,7 +377,7 @@ class DrupalState {
}: GetObjectByPathParams): Promise<PartialState<State> | void> {
const currentState = this.getState() as DsState;
const dsPathTranslations = currentState.dsPathTranslations as GenericIndex;
if (!dsPathTranslations?.[`${path}`]) {
if (refresh || !dsPathTranslations?.[`${path}`]) {
!this.debug ||
console.log(
`No match for ${path} in dsPathTranslations - calling translatePath.`
Loading