mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
fix: make layout timing match old setup (#1743)
This commit is contained in:
@@ -2,7 +2,7 @@ import useRpc from './useRpc';
|
||||
|
||||
export default function useLayout(model) {
|
||||
const [layout, { validating, canCancel, canRetry }, longrunning] = useRpc(model, 'getLayout');
|
||||
if (model?.pureLayout) {
|
||||
if (model?.pureLayout && layout) {
|
||||
return [model.pureLayout, { validating, canCancel, canRetry }, longrunning];
|
||||
}
|
||||
return [layout, { validating, canCancel, canRetry }, longrunning];
|
||||
|
||||
Reference in New Issue
Block a user