Skip to content

Commit

Permalink
Fix(frontend): FKField queryset resolving.
Browse files Browse the repository at this point in the history
  • Loading branch information
flwd3m authored and onegreyonewhite committed Dec 5, 2024
1 parent 389f832 commit 18baff3
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 18baff3

Please sign in to comment.