Hi I am trying to build a Monday app where the user should be able to select different groups from different boards. I can select the groups fine in preview mode but once I try it in a dashboard the settings ar not passed to the app, they seem to be saved as settings but i can’t get them though monday.listen(“settings”). I can however get other field typs info in.
below is the code I’m using and I have added a standard groups field without changing any settings. Is this a problem someone knows how to solve or can reproduce?
import React from "react";
import "./App.css";
import mondaySdk from "monday-sdk-js";
const monday = mondaySdk();
class App extends React.Component {
constructor(props) {
super(props);
// Default state
this.state = {
settings: {},
name: "",
};
}
componentDidMount() {
monday.listen("settings", res => {
this.setState({ settings: res.data });
});
}
render() {
return <div className="App" >
{JSON.stringify(this.state.settings)}
</div>;
}
}
export default App;