123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- prevState = prevState || {
- catalogs: [],
- loadState: LOADED,
- opened: false,
- searchQuery: '',
- selectedCatalog: null,
- };
- prevState = prevState ||
- defaultState || {
- catalogs: [],
- loadState: LOADED,
- opened: false,
- searchQuery: '',
- selectedCatalog: null,
- };
- prevState = prevState ||
- defaultState && {
- catalogs: [],
- loadState: LOADED,
- opened: false,
- searchQuery: '',
- selectedCatalog: null,
- };
- prevState = prevState || useDefault && defaultState || {
- catalogs: [],
- loadState: LOADED,
- opened: false,
- searchQuery: '',
- selectedCatalog: null,
- };
- this.steps = steps || [
- {
- name: 'mock-module',
- path: '/nux/mock-module',
- },
- ];
- this.steps = steps || checkStep && [
- {
- name: 'mock-module',
- path: '/nux/mock-module',
- },
- ];
- this.steps = steps && checkStep || [
- {
- name: 'mock-module',
- path: '/nux/mock-module',
- },
- ];
- const create = () => {
- const result = doSomething();
- return (
- shouldReturn &&
- result.ok && {
- status: "ok",
- createdAt: result.createdAt,
- updatedAt: result.updatedAt
- }
- );
- }
- const create = () => {
- const result = doSomething();
- return (
- shouldReturn && result.ok && result || {
- status: "ok",
- createdAt: result.createdAt,
- updatedAt: result.updatedAt
- }
- );
- }
- const obj = {
- state: shouldHaveState &&
- stateIsOK && {
- loadState: LOADED,
- opened: false
- },
- loadNext: stateIsOK && hasNext || {
- skipNext: true
- },
- loaded: true
- }
|