Skip to content

Commit

Permalink
Release 5.11.17
Browse files Browse the repository at this point in the history
### Changelog:
* Fix(frontend): ``FKField`` queryset resolving.
* Fix(frontend): ``onAppCreated`` hook typing

See merge request vst/vst-utils!681
  • Loading branch information
onegreyonewhite committed Dec 5, 2024
2 parents 389f832 + 18baff3 commit 9fa8b2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion frontend_src/vstutils/fields/fk/fk/FKField.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ export class FKField extends BaseField<TInner, TRepresent, FKFieldXOptions> impl

getAllQuerysets(path: string) {
return this._formatQuerysets(
this.querysets.get(path) || this.querysets.get(undefined) || [this.getFallbackQs()],
this.querysets.get(path) ||
this.querysets.get(undefined) || [this.getValueFetchQs(path) || this.getFallbackQs()],
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion frontend_src/vstutils/signals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const createHook = (() => {
};
})();

export const onAppCreated = createHook<[{ app: IAppInitialized }]>(APP_CREATED);
export const onAppCreated = createHook<[IAppInitialized]>(APP_CREATED);
export const onAppAfterInit = createHook<[{ app: IAppInitialized }]>(APP_AFTER_INIT);
export const onAppBeforeInit = createHook<[{ app: IAppInitialized }]>(APP_BEFORE_INIT);
export const onSchemaViewsCreated = createHook<[{ views: IAppInitialized['views'] }]>(SCHEMA_VIEWS_CREATED);
Expand Down
2 changes: 1 addition & 1 deletion vstutils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# pylint: disable=django-not-available
__version__: str = '5.11.16'
__version__: str = '5.11.17'

0 comments on commit 9fa8b2e

Please sign in to comment.