@rr0/cms
Version:
RR0 Content Management System (CMS)
14 lines (13 loc) • 626 B
JavaScript
import { Place } from "@rr0/place";
export class OrganizationPlace extends Place {
constructor(org) {
var _a, _b, _c;
super(((_a = org.places[0]) === null || _a === void 0 ? void 0 : _a.locations) || [], (_b = org.places[0]) === null || _b === void 0 ? void 0 : _b.elevation, (_c = org.places[0]) === null || _c === void 0 ? void 0 : _c.dirName);
this.org = org;
Object.assign(this, org.places[0]);
}
toString() {
var _a, _b;
return (_b = (_a = this.org) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : super.toString();
}
}