mirror of
https://github.com/rancher/norman.git
synced 2025-09-18 08:14:56 +00:00
Do not wrap a wrapped schema store
Problem: Pagination is broken when the schema store is wrapped twice Solution: Do not wrap a wrapped schema store
This commit is contained in:
@@ -7,6 +7,10 @@ import (
|
||||
)
|
||||
|
||||
func Wrap(store types.Store) types.Store {
|
||||
if _, ok := store.(*StoreWrapper); ok {
|
||||
return store
|
||||
}
|
||||
|
||||
return &StoreWrapper{
|
||||
store: store,
|
||||
}
|
||||
|
Reference in New Issue
Block a user