lerchmo
Explore posts from serversServer Error (500)
[2023-05-11 16:06:06 +0000] [1] [INFO] Starting gunicorn 20.1.0
[2023-05-11 16:06:06 +0000] [1] [INFO] Listening at: http://0.0.0.0:8060 (1)
[2023-05-11 16:06:06 +0000] [1] [INFO] Using worker: sync
[2023-05-11 16:06:06 +0000] [11] [INFO] Booting worker with pid: 11 it is listening to the $PORT environmental variable
18 replies
RRefine
•Created by modern-teal on 12/17/2022 in #ask-any-question
Trying to use Mantine MultiSelect With One 2 Many Field
this solved it, select: (data) => {
data.data.included = data.data.included.map((i: any) =>
typeof i === "object" ? i.id.toString() : i
);
data.data.excluded = data.data.excluded.map((i: any) =>
typeof i === "object" ? i.id.toString() : i
);
22 replies
RRefine
•Created by stormy-gold on 12/17/2022 in #ask-any-question
Trying to use Mantine MultiSelect With One 2 Many Field
is there a way to modify the shape of the dataProvider data before it gets to the edit component?
22 replies
RRefine
•Created by protestant-coral on 12/17/2022 in #ask-any-question
Trying to use Mantine MultiSelect With One 2 Many Field
hacky to say the least
22 replies
RRefine
•Created by ambitious-aqua on 12/17/2022 in #ask-any-question
Trying to use Mantine MultiSelect With One 2 Many Field
const AudiencePick: React.FC<AudiencePickProps> = (props: AudiencePickProps) => {
const { value, filterDataOnExactSearchMatch, onChange, data, ...rest } = props;
//@ts-ignore
const strData = data?.map((item) => ({ label: item.label, value: item.value + "" }));
//@ts-ignore
const strValue = value?.map((item) => {
//@ts-ignore
if (typeof item === "object") {
//@ts-ignore
return item.id + "";
} else {
return item;
}
});
const newOnChange = (newVal: string[]) => {
if (onChange) {
console.log(newVal);
onChange(newVal);
}
};
return <MultiSelect {...rest} data={strData} onChange={newOnChange} value={strValue} />;
};
export default AudiencePick;
22 replies
RRefine
•Created by fascinating-indigo on 12/17/2022 in #ask-any-question
Trying to use Mantine MultiSelect With One 2 Many Field
const fixedFinish = () => {
return onFinish({
//@ts-ignore
included: included.map((i) => ({ id: i })),
//@ts-ignore
excluded: excluded.map((i) => ({ id: i })),
...rest,
});
};
22 replies