1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-05-08 02:30:56 +00:00

Add filters support for lookups of single select fields

This commit is contained in:
Davide Silvestri 2024-11-12 19:22:38 +00:00 committed by Bram Wiepjes
parent 5558139eb8
commit be27e89fb0
19 changed files with 1358 additions and 95 deletions
web-frontend/modules/core

View file

@ -36,14 +36,16 @@
export function mix(...chain) {
const [baseClass, ...mixins] = chain.reverse()
class Mixed extends baseClass {}
for (const mixin of mixins) {
for (const [key, value] of Object.entries(mixin)) {
/* eslint no-prototype-builtins: "off" */
if (!baseClass.prototype.hasOwnProperty(key)) {
baseClass.prototype[key] = value
if (!Mixed.prototype.hasOwnProperty(key)) {
Mixed.prototype[key] = value
}
}
}
return baseClass
return Mixed
}