Skip to content

Commit

Permalink
removing apiParan check
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyoung3 committed Sep 17, 2024
1 parent 0b47bb1 commit 7ffe343
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export class Filters extends Component {

constructor(props) {
super(props);
this.props.apiParams = props.apiParams || ""
this.state = {
allItems: {},
activeItems: {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ var Filters = /*#__PURE__*/function (_Component) {
var _this2 = this;

var that = this;
fetch('/api/terms-used/' + this.props.bundle).then(function (response) {
var params = this.props.apiParams ? "?" + queryString.stringify(this.props.apiParams, {
arrayFormat: 'bracket'
}) : "";
fetch('/api/terms-used/' + this.props.bundle + params).then(function (response) {
return response.json();
}).then(function (jsonData) {
that.setState({
Expand Down Expand Up @@ -811,6 +814,9 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Components_Filters__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../Components/Filters */ "./Components/Filters.jsx");
/* harmony import */ var _styles_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./styles.scss */ "./cardinal_quarter_opportunities_list/src/styles.scss");
/* harmony import */ var _styles_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_styles_scss__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var query_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! query-string */ "./node_modules/query-string/index.js");
/* harmony import */ var query_string__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(query_string__WEBPACK_IMPORTED_MODULE_4__);




Expand Down Expand Up @@ -863,6 +869,9 @@ react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render( /*#__PURE__*/react__WEB
header: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h2", null, "Search by"),
wrapperAttributes: {
className: "flex-12-of-12"
},
apiParams: {
su_opp_dimension: ["301"]
}
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", {
className: "flex-12-of-12 sort-links"
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ var Filters = /*#__PURE__*/function (_Component) {
var _this2 = this;

var that = this;
fetch('/api/terms-used/' + this.props.bundle).then(function (response) {
var params = this.props.apiParams ? "?" + queryString.stringify(this.props.apiParams, {
arrayFormat: 'bracket'
}) : "";
fetch('/api/terms-used/' + this.props.bundle + params).then(function (response) {
return response.json();
}).then(function (jsonData) {
that.setState({
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ var Filters = /*#__PURE__*/function (_Component) {
var _this2 = this;

var that = this;
fetch('/api/terms-used/' + this.props.bundle).then(function (response) {
var params = this.props.apiParams ? "?" + queryString.stringify(this.props.apiParams, {
arrayFormat: 'bracket'
}) : "";
fetch('/api/terms-used/' + this.props.bundle + params).then(function (response) {
return response.json();
}).then(function (jsonData) {
that.setState({
Expand Down

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion themes/cardinal_service/pdb_components/resources/lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ var Filters = /*#__PURE__*/function (_Component) {
var _this2 = this;

var that = this;
fetch('/api/terms-used/' + this.props.bundle).then(function (response) {
var params = this.props.apiParams ? "?" + queryString.stringify(this.props.apiParams, {
arrayFormat: 'bracket'
}) : "";
fetch('/api/terms-used/' + this.props.bundle + params).then(function (response) {
return response.json();
}).then(function (jsonData) {
that.setState({
Expand Down

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion themes/cardinal_service/pdb_components/stories/lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ var Filters = /*#__PURE__*/function (_Component) {
var _this2 = this;

var that = this;
fetch('/api/terms-used/' + this.props.bundle).then(function (response) {
var params = this.props.apiParams ? "?" + queryString.stringify(this.props.apiParams, {
arrayFormat: 'bracket'
}) : "";
fetch('/api/terms-used/' + this.props.bundle + params).then(function (response) {
return response.json();
}).then(function (jsonData) {
that.setState({
Expand Down

Large diffs are not rendered by default.

0 comments on commit 7ffe343

Please sign in to comment.